class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: E = None
        self.z: F = None
        self.x: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: I = None
        self.r: H = None
        self.x: H = None
        self.q: A = None
        self.s: J = None
        self.p: J = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: I = None
        self.y: G = None
        self.o: F = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: J = None
        self.u: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: I = None
        self.r: H = None
        self.x: H = None
        self.q: A = None
        self.s: J = None
        self.p: J = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: I = None
        self.y: G = None
        self.o: F = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: J = None
        self.u: A = None
        self.txt = txt

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

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

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