class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: F = None
        self.x: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: I = None
        self.w: A = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: H = None
        self.u: F = None
        self.y: J = None
        self.s: F = None
        self.r: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.y: B = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: E = None
        self.z: A = None
        self.y: B = None
        self.u: E = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: I = None
        self.w: A = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: H = None
        self.u: F = None
        self.y: J = None
        self.s: F = None
        self.r: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.y: B = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: E = None
        self.z: A = None
        self.y: B = None
        self.u: E = None
        self.t: B = None
        self.txt = txt

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

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

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

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