class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: C = None
        self.u: D = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: D = None
        self.r: E = None
        self.v: D = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: B = None
        self.v: A = None
        self.txt = txt

b = A("b")
h = B("h")
c = C("c")
n = D("n")
i = E("i")
a = D("a")
k = E("k")
f = A("f")
m = D("m")

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: D = None
        self.r: E = None
        self.v: D = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: B = None
        self.v: A = None
        self.txt = txt

b = A("b")
h = B("h")
c = C("c")
n = D("n")
i = E("i")
a = D("a")
k = E("k")
f = A("f")
m = D("m")

b.t = f
b.r = c
b.u = m
b.p = h
h.o = i
h.r = i
h.s = m
h.v = n
h.p = c
c.s = i
c.v = h
c.z = f
c.w = f
n.v = c
n.p = b
n.q = k
n.y = a
n.s = h
i.q = k
i.x = h
i.v = f
a.v = c
a.p = f
a.q = k
a.y = n
a.s = h
k.q = i
k.x = h
k.v = b
f.t = b
f.r = c
f.u = n
f.p = h
m.v = c
m.p = f
m.q = i
m.y = n
m.s = h
assert h.s.p.r.w.t.u.txt == "m"