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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.v: G = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: F = None
        self.r: H = None
        self.y: B = None
        self.v: A = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

a = A("a")
e = B("e")
h = C("h")
k = D("k")
l = E("l")
m = F("m")
j = G("j")
g = H("g")
n = F("n")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.v: G = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: F = None
        self.r: H = None
        self.y: B = None
        self.v: A = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

a = A("a")
e = B("e")
h = C("h")
k = D("k")
l = E("l")
m = F("m")
j = G("j")
g = H("g")
n = F("n")

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