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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: E = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.y: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: E = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.y: D = None
        self.w: C = None
        self.txt = txt

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

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

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