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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: H = None
        self.s: C = None
        self.u: D = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: H = None
        self.s: C = None
        self.u: D = None
        self.z: B = None
        self.txt = txt

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

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