class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: B = None
        self.z: E = None
        self.y: G = None
        self.o: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.x: D = None
        self.v: C = None
        self.o: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.x: D = None
        self.v: C = None
        self.o: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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