class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: B = None
        self.q: B = None
        self.w: B = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.r: C = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.r: C = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: C = None
        self.txt = txt

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

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

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