class A:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: C = None
        self.s: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: C = None
        self.w: E = None
        self.z: E = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: C = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: C = None
        self.w: E = None
        self.z: E = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: C = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

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