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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: H = None
        self.w: A = None
        self.u: F = None
        self.q: A = None
        self.z: F = None
        self.v: E = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: B = None
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: H = None
        self.w: A = None
        self.u: F = None
        self.q: A = None
        self.z: F = None
        self.v: E = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: B = None
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.txt = txt

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

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