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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: E = None
        self.o: E = None
        self.txt = txt

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

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

e = A("e")
g = B("g")
m = C("m")
l = D("l")
f = E("f")
n = A("n")
i = E("i")

e.u = g
e.w = m
e.r = f
e.t = f
e.p = l
g.z = l
g.u = n
m.t = g
m.x = i
m.o = i
l.u = i
l.t = g
l.r = e
f.q = n
f.o = g
f.y = m
f.z = m
f.w = i
n.u = g
n.w = m
n.r = i
n.p = l
n.t = f
i.q = e
i.o = g
i.y = m
i.z = m
i.w = f
assert n.p.r.u.z.t.u.u.txt == "
class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.r: E = None
        self.p: D = None
        self.t: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: E = None
        self.o: E = None
        self.txt = txt

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

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

e = A("e")
g = B("g")
m = C("m")
l = D("l")
f = E("f")
n = A("n")
i = E("i")

e.u = g
e.w = m
e.r = f
e.t = f
e.p = l
g.z = l
g.u = n
m.t = g
m.x = i
m.o = i
l.u = i
l.t = g
l.r = e
f.q = n
f.o = g
f.y = m
f.z = m
f.w = i
n.u = g
n.w = m
n.r = i
n.p = l
n.t = f
i.q = e
i.o = g
i.y = m
i.z = m
i.w = f
assert n.p.r.u.z.t.u.u.txt == "g"