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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.o: F = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: B = None
        self.x: E = None
        self.z: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: B = None
        self.u: F = None
        self.v: D = None
        self.t: F = None
        self.o: F = None
        self.txt = txt

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

b = A("b")
c = B("c")
k = C("k")
j = D("j")
e = E("e")
a = F("a")
i = B("i")
d = D("d")
m = B("m")
l = A("l")

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.o: F = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: B = None
        self.x: E = None
        self.z: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: B = None
        self.u: F = None
        self.v: D = None
        self.t: F = None
        self.o: F = None
        self.txt = txt

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

b = A("b")
c = B("c")
k = C("k")
j = D("j")
e = E("e")
a = F("a")
i = B("i")
d = D("d")
m = B("m")
l = A("l")

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