class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: D = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: J = None
        self.w: A = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: J = None
        self.w: A = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.txt = txt

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

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