class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: B = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: A = None
        self.z: D = None
        self.t: J = None
        self.u: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: H = None
        self.t: D = None
        self.q: E = None
        self.o: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: J = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: F = None
        self.o: E = None
        self.r: E = None
        self.s: H = None
        self.p: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: A = None
        self.z: D = None
        self.t: J = None
        self.u: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: H = None
        self.t: D = None
        self.q: E = None
        self.o: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: J = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: F = None
        self.o: E = None
        self.r: E = None
        self.s: H = None
        self.p: C = None
        self.txt = txt

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

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