class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: D = None
        self.r: D = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: E = None
        self.q: I = None
        self.p: F = None
        self.x: C = None
        self.o: I = None
        self.r: J = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.z: I = None
        self.r: I = None
        self.s: J = None
        self.q: I = None
        self.p: H = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: E = None
        self.z: H = None
        self.w: C = None
        self.p: E = None
        self.x: J = None
        self.q: I = None
        self.v: C = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: J = None
        self.r: A = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.o: H = None
        self.v: B = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: F = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: B = None
        self.q: E = None
        self.p: C = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: E = None
        self.q: I = None
        self.p: F = None
        self.x: C = None
        self.o: I = None
        self.r: J = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.z: I = None
        self.r: I = None
        self.s: J = None
        self.q: I = None
        self.p: H = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: E = None
        self.z: H = None
        self.w: C = None
        self.p: E = None
        self.x: J = None
        self.q: I = None
        self.v: C = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: J = None
        self.r: A = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.o: H = None
        self.v: B = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: F = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: B = None
        self.q: E = None
        self.p: C = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: F = None
        self.txt = txt

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

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