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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: D = None
        self.o: D = None
        self.q: F = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.o: B = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

i = A("i")
j = B("j")
g = C("g")
h = D("h")
m = E("m")
a = F("a")
c = E("c")
n = D("n")
k = C("k")

i.w = j
i.v = c
i.u = c
i.z = a
j.z = a
j.q = a
j.x = h
j.o = h
j.t = n
g.x = k
g.z = k
g.o = j
g.p = h
g.y = m
g.w = n
h.y = m
h.s = a
h.o = j
h.w = k
m.r = j
m.q = j
m.o = j
m.p = g
m.s = g
m.u = a
a.q = n
c.r = j
c.q = j
c.o = j
c.p = g
c.s = k
c.u = a
n.y = m
n.s = a
n.o = j
n.w = g
k.x = g
k.z = g
k.o = j
k.p = h
k.y = c
k.w = n
assert m.u.q.s.q.s.q.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: E = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: D = None
        self.o: D = None
        self.q: F = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: F = None
        self.o: B = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

i = A("i")
j = B("j")
g = C("g")
h = D("h")
m = E("m")
a = F("a")
c = E("c")
n = D("n")
k = C("k")

i.w = j
i.v = c
i.u = c
i.z = a
j.z = a
j.q = a
j.x = h
j.o = h
j.t = n
g.x = k
g.z = k
g.o = j
g.p = h
g.y = m
g.w = n
h.y = m
h.s = a
h.o = j
h.w = k
m.r = j
m.q = j
m.o = j
m.p = g
m.s = g
m.u = a
a.q = n
c.r = j
c.q = j
c.o = j
c.p = g
c.s = k
c.u = a
n.y = m
n.s = a
n.o = j
n.w = g
k.x = g
k.z = g
k.o = j
k.p = h
k.y = c
k.w = n
assert m.u.q.s.q.s.q.txt == "n"