class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: F = None
        self.t: B = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: E = None
        self.p: A = None
        self.o: C = None
        self.t: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: F = None
        self.q: F = None
        self.y: F = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: A = None
        self.v: E = None
        self.t: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: E = None
        self.p: A = None
        self.o: C = None
        self.t: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: F = None
        self.q: F = None
        self.y: F = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: A = None
        self.v: E = None
        self.t: C = None
        self.txt = txt

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

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