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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: E = None
        self.q: B = None
        self.z: B = None
        self.v: B = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.txt = txt

h = A("h")
j = B("j")
k = C("k")
a = D("a")
g = E("g")
n = D("n")
f = A("f")
c = A("c")
e = B("e")

h.w = n
h.v = n
h.t = g
h.p = e
h.q = k
j.u = e
j.q = e
j.z = e
j.v = e
j.t = g
k.u = g
k.o = a
a.y = g
a.t = g
a.o = k
a.p = k
g.u = k
g.r = a
n.y = g
n.t = g
n.o = k
n.p = k
f.w = a
f.t = g
f.v = n
f.p = j
f.q = k
c.w = a
c.v = a
c.t = g
c.p = e
c.q = k
e.u = j
e.q = j
e.z = j
e.v = j
e.t = g
assert c.v.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.v: D = None
        self.p: B = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: E = None
        self.q: B = None
        self.z: B = None
        self.v: B = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.txt = txt

h = A("h")
j = B("j")
k = C("k")
a = D("a")
g = E("g")
n = D("n")
f = A("f")
c = A("c")
e = B("e")

h.w = n
h.v = n
h.t = g
h.p = e
h.q = k
j.u = e
j.q = e
j.z = e
j.v = e
j.t = g
k.u = g
k.o = a
a.y = g
a.t = g
a.o = k
a.p = k
g.u = k
g.r = a
n.y = g
n.t = g
n.o = k
n.p = k
f.w = a
f.t = g
f.v = n
f.p = j
f.q = k
c.w = a
c.v = a
c.t = g
c.p = e
c.q = k
e.u = j
e.q = j
e.z = j
e.v = j
e.t = g
assert c.v.t.u.txt == "k"