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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: F = None
        self.s: A = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: E = None
        self.w: C = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: F = None
        self.s: A = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: E = None
        self.w: C = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

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

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