class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: F = None
        self.o: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: F = None
        self.t: C = None
        self.w: F = 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.u: D = None
        self.v: B = None
        self.x: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: F = None
        self.t: C = None
        self.w: F = 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.u: D = None
        self.v: B = None
        self.x: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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