class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: H = None
        self.s: E = None
        self.o: F = None
        self.u: G = None
        self.w: D = None
        self.q: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: F = None
        self.r: A = None
        self.s: G = None
        self.t: F = None
        self.v: F = None
        self.y: J = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.y: C = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: F = None
        self.r: A = None
        self.s: G = None
        self.t: F = None
        self.v: F = None
        self.y: J = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.y: C = None
        self.u: D = None
        self.txt = txt

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

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