class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: D = None
        self.q: C = None
        self.t: G = None
        self.s: B = None
        self.u: D = None
        self.x: E = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: H = None
        self.y: F = None
        self.q: G = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: B = None
        self.t: F = None
        self.p: H = None
        self.u: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: H = None
        self.o: F = None
        self.w: H = None
        self.p: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: D = None
        self.q: G = None
        self.o: C = None
        self.y: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: H = None
        self.y: F = None
        self.q: G = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: B = None
        self.t: F = None
        self.p: H = None
        self.u: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: H = None
        self.o: F = None
        self.w: H = None
        self.p: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: D = None
        self.q: G = None
        self.o: C = None
        self.y: B = None
        self.txt = txt

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

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