class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: G = None
        self.s: C = None
        self.t: E = None
        self.v: E = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.w: F = None
        self.q: F = None
        self.y: G = None
        self.v: C = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: A = None
        self.v: E = None
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: D = None
        self.y: C = None
        self.s: C = None
        self.o: E = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: B = None
        self.txt = txt

c = A("c")
k = B("k")
f = C("f")
i = D("i")
d = E("d")
m = F("m")
n = G("n")
h = H("h")
e = H("e")

c.s = m
k.p = m
k.w = n
k.s = f
k.t = d
k.v = d
k.q = h
f.q = h
f.o = n
i.s = d
i.t = m
i.w = m
i.q = m
i.y = n
i.v = f
i.o = f
d.y = c
m.z = c
m.o = c
m.v = d
m.x = h
n.x = i
n.v = i
n.y = f
n.s = f
n.o = d
n.p = d
n.w = c
h.y = n
h.o = k
e.y = n
e.o = k
assert c.s.v.y.s.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: G = None
        self.s: C = None
        self.t: E = None
        self.v: E = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.w: F = None
        self.q: F = None
        self.y: G = None
        self.v: C = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: A = None
        self.v: E = None
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: D = None
        self.y: C = None
        self.s: C = None
        self.o: E = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: B = None
        self.txt = txt

c = A("c")
k = B("k")
f = C("f")
i = D("i")
d = E("d")
m = F("m")
n = G("n")
h = H("h")
e = H("e")

c.s = m
k.p = m
k.w = n
k.s = f
k.t = d
k.v = d
k.q = h
f.q = h
f.o = n
i.s = d
i.t = m
i.w = m
i.q = m
i.y = n
i.v = f
i.o = f
d.y = c
m.z = c
m.o = c
m.v = d
m.x = h
n.x = i
n.v = i
n.y = f
n.s = f
n.o = d
n.p = d
n.w = c
h.y = n
h.o = k
e.y = n
e.o = k
assert c.s.v.y.s.x.o.txt == "k"