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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.s: G = None
        self.u: I = None
        self.x: H = None
        self.v: G = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: J = None
        self.p: E = None
        self.u: A = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: G = None
        self.q: B = None
        self.x: H = None
        self.t: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.s: G = None
        self.u: I = None
        self.x: H = None
        self.v: G = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: J = None
        self.p: E = None
        self.u: A = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: G = None
        self.q: B = None
        self.x: H = None
        self.t: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.txt = txt

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

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