class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: H = None
        self.s: G = None
        self.z: C = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.r: E = None
        self.t: A = None
        self.z: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: G = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: I = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: G = None
        self.x: H = None
        self.z: H = None
        self.v: A = None
        self.r: A = None
        self.u: H = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.r: E = None
        self.t: A = None
        self.z: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: G = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: I = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: G = None
        self.x: H = None
        self.z: H = None
        self.v: A = None
        self.r: A = None
        self.u: H = None
        self.s: C = None
        self.txt = txt

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

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

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