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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: E = None
        self.y: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: E = None
        self.y: D = None
        self.t: E = None
        self.txt = txt

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

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

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

e.s = g
e.r = i
e.z = m
g.q = k
i.u = m
i.y = m
i.w = j
i.t = j
m.q = k
m.p = i
m.v = i
m.u = c
m.y = e
k.o = g
k.u = j
k.r = f
k.w = m
j.o = n
j.u = k
j.r = i
j.w = m
l.s = g
l.r = f
l.z = m
n.q = j
f.u = m
f.y = m
f.w = j
f.t = k
c.s = n
c.r = f
c.z = m
assert e.r.w.r.y.q.r.y.txt == "m"