class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: J = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: C = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.r: F = None
        self.y: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: F = None
        self.q: J = None
        self.z: D = None
        self.t: D = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.z: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: C = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.r: F = None
        self.y: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: F = None
        self.q: J = None
        self.z: D = None
        self.t: D = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.z: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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