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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.z: A = None
        self.u: B = None
        self.x: H = None
        self.p: H = None
        self.q: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: A = None
        self.p: A = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.z: A = None
        self.u: B = None
        self.x: H = None
        self.p: H = None
        self.q: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: A = None
        self.p: A = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

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

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