class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: H = None
        self.r: B = None
        self.w: E = None
        self.o: C = None
        self.y: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: I = None
        self.y: I = None
        self.w: H = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: B = None
        self.u: H = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: F = None
        self.y: F = None
        self.q: C = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: E = None
        self.y: I = None
        self.t: E = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.o: B = None
        self.z: B = None
        self.w: I = None
        self.s: A = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

i = A("i")
k = B("k")
b = C("b")
j = D("j")
e = E("e")
a = F("a")
d = G("d")
m = H("m")
l = I("l")

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: I = None
        self.y: I = None
        self.w: H = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: B = None
        self.u: H = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: F = None
        self.y: F = None
        self.q: C = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: E = None
        self.y: I = None
        self.t: E = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.o: B = None
        self.z: B = None
        self.w: I = None
        self.s: A = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

i = A("i")
k = B("k")
b = C("b")
j = D("j")
e = E("e")
a = F("a")
d = G("d")
m = H("m")
l = I("l")

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