class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: G = None
        self.t: B = None
        self.y: J = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.s: I = None
        self.x: A = None
        self.r: H = None
        self.u: C = None
        self.o: I = None
        self.v: A = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: H = None
        self.u: B = None
        self.t: H = None
        self.z: J = None
        self.v: F = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.p: A = None
        self.x: J = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: D = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.s: I = None
        self.x: A = None
        self.r: H = None
        self.u: C = None
        self.o: I = None
        self.v: A = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: H = None
        self.u: B = None
        self.t: H = None
        self.z: J = None
        self.v: F = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.p: A = None
        self.x: J = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: D = None
        self.p: H = None
        self.txt = txt

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

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

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