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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: C = None
        self.r: A = None
        self.y: H = None
        self.z: A = None
        self.v: A = None
        self.o: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.p: F = None
        self.z: E = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: C = None
        self.r: A = None
        self.y: H = None
        self.z: A = None
        self.v: A = None
        self.o: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.p: F = None
        self.z: E = None
        self.r: C = None
        self.txt = txt

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

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