class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: F = None
        self.w: C = None
        self.v: F = None
        self.y: F = None
        self.p: B = None
        self.o: C = None
        self.r: E = None
        self.q: C = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: D = None
        self.u: J = None
        self.s: B = None
        self.y: J = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: F = None
        self.u: E = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: D = None
        self.u: J = None
        self.s: B = None
        self.y: J = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: F = None
        self.u: E = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

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

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

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