class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: F = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.o: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: A = None
        self.s: F = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: E = None
        self.x: A = None
        self.u: E = None
        self.q: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: H = None
        self.t: C = None
        self.z: D = None
        self.v: F = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: C = None
        self.t: F = None
        self.x: F = None
        self.r: D = None
        self.o: C = None
        self.txt = txt

m = A("m")
n = B("n")
e = C("e")
d = D("d")
j = E("j")
l = F("l")
b = G("b")
i = H("i")
c = A("c")
k = C("k")

m.s = k
m.w = l
m.q = n
m.y = c
n.t = k
e.y = k
e.o = k
e.z = m
d.r = c
d.v = c
d.s = l
d.t = i
j.t = m
j.x = i
l.s = i
l.z = j
l.u = j
l.x = c
l.q = n
l.v = k
b.w = m
b.x = i
b.t = e
b.z = d
b.p = d
b.v = l
i.p = n
i.u = e
i.o = e
i.t = l
i.x = l
i.r = d
c.s = e
c.w = l
c.q = n
c.y = m
k.y = e
k.o = e
k.z = c
assert e.z.q.t.z.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: F = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.o: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: A = None
        self.s: F = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: E = None
        self.x: A = None
        self.u: E = None
        self.q: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: H = None
        self.t: C = None
        self.z: D = None
        self.v: F = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: C = None
        self.t: F = None
        self.x: F = None
        self.r: D = None
        self.o: C = None
        self.txt = txt

m = A("m")
n = B("n")
e = C("e")
d = D("d")
j = E("j")
l = F("l")
b = G("b")
i = H("i")
c = A("c")
k = C("k")

m.s = k
m.w = l
m.q = n
m.y = c
n.t = k
e.y = k
e.o = k
e.z = m
d.r = c
d.v = c
d.s = l
d.t = i
j.t = m
j.x = i
l.s = i
l.z = j
l.u = j
l.x = c
l.q = n
l.v = k
b.w = m
b.x = i
b.t = e
b.z = d
b.p = d
b.v = l
i.p = n
i.u = e
i.o = e
i.t = l
i.x = l
i.r = d
c.s = e
c.w = l
c.q = n
c.y = m
k.y = e
k.o = e
k.z = c
assert e.z.q.t.z.txt == "c"