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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: I = None
        self.v: I = None
        self.t: I = None
        self.q: H = None
        self.z: J = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: D = None
        self.v: I = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: A = None
        self.y: D = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: D = None
        self.w: F = None
        self.x: B = None
        self.u: D = None
        self.z: A = None
        self.o: J = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: I = None
        self.v: I = None
        self.t: I = None
        self.q: H = None
        self.z: J = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: D = None
        self.v: I = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: A = None
        self.y: D = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: D = None
        self.w: F = None
        self.x: B = None
        self.u: D = None
        self.z: A = None
        self.o: J = None
        self.q: A = None
        self.txt = txt

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

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

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