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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: E = None
        self.y: D = None
        self.o: E = None
        self.z: F = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: G = None
        self.r: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: D = None
        self.s: C = None
        self.z: H = None
        self.q: H = None
        self.o: C = None
        self.u: C = None
        self.y: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: F = None
        self.x: G = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: H = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: E = None
        self.y: D = None
        self.o: E = None
        self.z: F = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: G = None
        self.r: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: D = None
        self.s: C = None
        self.z: H = None
        self.q: H = None
        self.o: C = None
        self.u: C = None
        self.y: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: F = None
        self.x: G = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: H = None
        self.t: G = None
        self.txt = txt

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

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