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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: G = None
        self.u: D = None
        self.q: G = None
        self.r: C = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.p: H = None
        self.r: H = None
        self.y: G = None
        self.o: C = None
        self.z: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

a = A("a")
j = B("j")
c = C("c")
f = D("f")
k = E("k")
d = F("d")
m = G("m")
e = H("e")
n = F("n")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: G = None
        self.u: D = None
        self.q: G = None
        self.r: C = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.p: H = None
        self.r: H = None
        self.y: G = None
        self.o: C = None
        self.z: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

a = A("a")
j = B("j")
c = C("c")
f = D("f")
k = E("k")
d = F("d")
m = G("m")
e = H("e")
n = F("n")

a.o = d
a.y = e
j.o = c
j.r = c
j.w = m
j.q = m
j.u = f
j.s = k
j.x = k
c.x = k
c.p = k
f.q = a
k.t = c
k.p = a
k.u = f
k.r = j
d.x = m
d.y = m
d.z = m
d.v = n
d.p = e
d.r = e
d.o = c
d.s = f
m.s = e
e.q = f
e.s = c
e.w = n
e.y = n
e.u = j
e.o = a
e.x = k
n.x = m
n.y = m
n.z = m
n.v = d
n.p = e
n.r = e
n.o = c
n.s = f
assert e.s.p.t.txt == "c"