class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: G = None
        self.t: C = None
        self.u: C = None
        self.r: H = None
        self.v: G = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: C = None
        self.u: G = None
        self.r: H = None
        self.x: G = None
        self.t: G = None
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: G = None
        self.q: F = None
        self.z: A = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: C = None
        self.u: G = None
        self.r: H = None
        self.x: G = None
        self.t: G = None
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: G = None
        self.q: F = None
        self.z: A = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: A = None
        self.txt = txt

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

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

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