class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.p: G = None
        self.q: G = None
        self.z: G = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: I = None
        self.v: E = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: F = None
        self.p: C = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: I = None
        self.r: C = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.p: G = None
        self.q: G = None
        self.z: G = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: I = None
        self.v: E = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: F = None
        self.p: C = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: I = None
        self.r: C = None
        self.y: D = None
        self.txt = txt

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

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