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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.s: E = None
        self.o: I = None
        self.w: E = None
        self.y: F = None
        self.r: H = None
        self.z: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: H = None
        self.v: A = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: C = None
        self.s: F = None
        self.o: F = None
        self.v: B = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.s: E = None
        self.t: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.s: E = None
        self.o: I = None
        self.w: E = None
        self.y: F = None
        self.r: H = None
        self.z: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: H = None
        self.v: A = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: C = None
        self.s: F = None
        self.o: F = None
        self.v: B = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.s: E = None
        self.t: I = None
        self.txt = txt

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

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