class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: B = None
        self.x: H = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: D = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: C = None
        self.y: B = None
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.v: C = None
        self.x: D = None
        self.p: F = None
        self.y: I = None
        self.o: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: D = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: C = None
        self.y: B = None
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.v: C = None
        self.x: D = None
        self.p: F = None
        self.y: I = None
        self.o: A = None
        self.txt = txt

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

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