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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: F = None
        self.r: E = None
        self.s: E = None
        self.y: C = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: F = None
        self.r: E = None
        self.s: E = None
        self.y: C = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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