class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: H = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: D = None
        self.x: C = None
        self.t: H = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: E = None
        self.w: D = None
        self.y: G = None
        self.v: D = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: D = None
        self.x: C = None
        self.t: H = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: E = None
        self.w: D = None
        self.y: G = None
        self.v: D = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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