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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: J = None
        self.z: C = None
        self.u: B = None
        self.r: C = None
        self.t: H = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: H = None
        self.u: C = None
        self.z: I = None
        self.t: J = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: F = None
        self.w: F = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: C = None
        self.u: C = None
        self.q: G = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: J = None
        self.z: C = None
        self.u: B = None
        self.r: C = None
        self.t: H = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: H = None
        self.u: C = None
        self.z: I = None
        self.t: J = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: F = None
        self.w: F = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: C = None
        self.u: C = None
        self.q: G = None
        self.r: I = None
        self.txt = txt

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

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