class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: E = None
        self.t: B = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.r: D = None
        self.s: G = None
        self.y: G = None
        self.x: H = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.w: F = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: D = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.r: D = None
        self.s: G = None
        self.y: G = None
        self.x: H = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.w: F = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: D = None
        self.z: C = None
        self.txt = txt

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

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