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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.y: A = None
        self.p: C = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.y: A = None
        self.p: C = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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