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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.txt = txt

d = A("d")
f = B("f")
l = C("l")
j = D("j")
e = E("e")
c = F("c")
h = G("h")
k = F("k")
a = C("a")
b = C("b")

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.txt = txt

d = A("d")
f = B("f")
l = C("l")
j = D("j")
e = E("e")
c = F("c")
h = G("h")
k = F("k")
a = C("a")
b = C("b")

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