class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: D = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: G = None
        self.z: A = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: H = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: G = None
        self.z: A = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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