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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
g = C("g")
b = D("b")
e = E("e")
m = F("m")
a = G("a")
j = H("j")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
g = C("g")
b = D("b")
e = E("e")
m = F("m")
a = G("a")
j = H("j")
l = H("l")

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