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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: B = None
        self.q: C = None
        self.s: G = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: G = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: G = None
        self.w: D = None
        self.q: B = None
        self.u: G = None
        self.t: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: B = None
        self.v: B = None
        self.r: E = None
        self.x: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: B = None
        self.q: C = None
        self.s: G = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: G = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: G = None
        self.w: D = None
        self.q: B = None
        self.u: G = None
        self.t: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: B = None
        self.v: B = None
        self.r: E = None
        self.x: D = None
        self.txt = txt

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

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