class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: J = None
        self.t: E = None
        self.z: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: E = None
        self.q: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: B = None
        self.q: J = None
        self.z: B = None
        self.u: B = None
        self.r: A = None
        self.x: J = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.u: F = None
        self.q: I = None
        self.x: E = None
        self.w: C = None
        self.p: J = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.s: H = None
        self.q: H = None
        self.u: A = None
        self.x: H = None
        self.txt = txt

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

i.y = a
n.o = b
n.t = b
n.r = l
n.p = l
n.x = j
n.v = d
k.r = b
k.o = b
k.w = j
k.t = a
k.z = i
c.z = b
c.u = a
c.q = j
a.t = c
a.s = h
a.u = h
a.o = i
a.z = l
a.p = j
a.r = j
l.o = i
l.r = i
l.t = i
l.y = n
l.z = n
l.u = n
l.q = j
l.x = j
d.y = j
d.p = j
d.u = l
d.q = h
d.x = a
d.w = k
d.s = k
b.z = d
h.w = b
h.o = n
h.r = n
h.z = i
h.u = i
h.q = j
h.y = c
j.p = b
j.s = b
j.q = b
j.x = b
j.r = k
j.u = i
assert l.y.o.z.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: J = None
        self.t: E = None
        self.z: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: E = None
        self.q: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: B = None
        self.q: J = None
        self.z: B = None
        self.u: B = None
        self.r: A = None
        self.x: J = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.u: F = None
        self.q: I = None
        self.x: E = None
        self.w: C = None
        self.p: J = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.s: H = None
        self.q: H = None
        self.u: A = None
        self.x: H = None
        self.txt = txt

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

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