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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.s: D = None
        self.v: G = None
        self.y: D = None
        self.r: C = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.s: D = None
        self.v: G = None
        self.y: D = None
        self.r: C = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

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

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

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