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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: I = None
        self.u: C = None
        self.p: A = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: D = None
        self.u: G = None
        self.o: B = None
        self.y: B = None
        self.w: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: I = None
        self.u: C = None
        self.p: A = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: D = None
        self.u: G = None
        self.o: B = None
        self.y: B = None
        self.w: G = None
        self.txt = txt

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

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