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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.p: E = None
        self.u: H = None
        self.t: A = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: G = None
        self.u: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.p: E = None
        self.u: H = None
        self.t: A = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: G = None
        self.u: G = None
        self.txt = txt

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

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

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