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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: B = None
        self.o: D = None
        self.w: D = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.t: B = None
        self.y: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: B = None
        self.o: D = None
        self.w: D = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.t: B = None
        self.y: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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