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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: J = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: I = None
        self.t: G = None
        self.y: E = None
        self.z: B = None
        self.u: B = None
        self.v: I = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.o: H = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: J = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: I = None
        self.t: G = None
        self.y: E = None
        self.z: B = None
        self.u: B = None
        self.v: I = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.o: H = None
        self.u: F = None
        self.txt = txt

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

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

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