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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: G = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

k = A("k")
e = B("e")
g = C("g")
n = D("n")
h = E("h")
d = F("d")
j = G("j")
b = H("b")
m = I("m")

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: G = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

k = A("k")
e = B("e")
g = C("g")
n = D("n")
h = E("h")
d = F("d")
j = G("j")
b = H("b")
m = I("m")

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