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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: A = None
        self.v: H = None
        self.q: H = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: H = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: B = None
        self.p: I = None
        self.u: B = None
        self.o: D = None
        self.r: A = None
        self.q: C = None
        self.s: B = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: I = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: G = None
        self.p: B = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: A = None
        self.v: H = None
        self.q: H = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: H = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: B = None
        self.p: I = None
        self.u: B = None
        self.o: D = None
        self.r: A = None
        self.q: C = None
        self.s: B = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: I = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: G = None
        self.p: B = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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