class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: C = None
        self.s: D = None
        self.v: C = None
        self.q: E = None
        self.p: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.o: I = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.p: F = None
        self.v: C = None
        self.t: C = None
        self.w: B = None
        self.txt = txt

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

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

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

k.t = g
k.o = g
k.v = g
k.s = l
k.q = i
k.p = a
j.o = k
j.r = h
j.v = i
j.q = i
j.u = i
j.z = f
j.s = f
j.p = g
g.s = l
g.w = l
g.p = j
g.o = a
g.v = h
l.p = k
l.z = g
l.o = a
i.z = b
i.y = k
i.q = g
i.o = g
i.w = f
i.v = h
i.u = h
f.p = b
b.z = i
b.x = i
b.p = f
b.v = g
b.t = g
b.w = j
h.s = j
h.u = i
h.r = f
a.z = l
a.p = j
assert b.x.w.p.t.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: C = None
        self.s: D = None
        self.v: C = None
        self.q: E = None
        self.p: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.o: I = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.p: F = None
        self.v: C = None
        self.t: C = None
        self.w: B = None
        self.txt = txt

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

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

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

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