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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.r: B = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: B = None
        self.y: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: D = None
        self.s: B = None
        self.w: B = None
        self.p: B = None
        self.txt = txt

h = A("h")
f = B("f")
a = C("a")
l = D("l")
j = E("j")
c = E("c")
e = D("e")
i = C("i")
b = B("b")

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.r: B = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: B = None
        self.y: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: D = None
        self.s: B = None
        self.w: B = None
        self.p: B = None
        self.txt = txt

h = A("h")
f = B("f")
a = C("a")
l = D("l")
j = E("j")
c = E("c")
e = D("e")
i = C("i")
b = B("b")

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