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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: I = None
        self.w: I = None
        self.t: C = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: A = None
        self.t: A = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: I = None
        self.w: I = None
        self.t: C = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: A = None
        self.t: A = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

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

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

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

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