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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.o: D = None
        self.t: I = None
        self.s: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: C = None
        self.q: A = None
        self.w: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

i = A("i")
f = B("f")
l = C("l")
e = D("e")
d = E("d")
b = F("b")
g = G("g")
k = H("k")
m = I("m")
c = J("c")

i.p = c
i.x = k
i.v = k
i.r = b
i.w = l
i.z = e
i.q = f
f.p = c
f.u = l
f.o = e
f.t = m
f.s = m
l.x = k
l.r = k
l.v = i
l.y = m
l.z = m
l.q = e
l.u = c
e.p = d
e.z = d
e.x = m
e.t = i
e.o = i
e.v = k
e.y = g
e.q = l
e.r = l
e.s = l
d.s = c
d.q = m
d.v = f
b.s = e
g.t = i
g.q = i
g.u = l
g.s = c
g.x = d
g.v = d
g.o = d
g.w = f
g.y = e
k.u = d
k.o = l
k.q = i
k.w = f
m.y = k
m.t = k
m.s = l
m.z = l
m.q = b
m.r = b
m.v = g
m.w = f
m.u = e
c.z = i
assert b.s.o.q.p.z.z.x.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.x: H = None
        self.r: F = None
        self.w: C = None
        self.z: D = None
        self.q: B = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.o: D = None
        self.t: I = None
        self.s: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: C = None
        self.q: A = None
        self.w: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

i = A("i")
f = B("f")
l = C("l")
e = D("e")
d = E("d")
b = F("b")
g = G("g")
k = H("k")
m = I("m")
c = J("c")

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