class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: B = None
        self.txt = txt

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

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