class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: B = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: A = None
        self.v: D = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: H = None
        self.p: H = None
        self.t: J = None
        self.v: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: I = None
        self.r: B = None
        self.u: I = None
        self.o: F = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: H = None
        self.s: H = None
        self.p: B = None
        self.y: G = None
        self.v: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: A = None
        self.v: D = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: H = None
        self.p: H = None
        self.t: J = None
        self.v: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: I = None
        self.r: B = None
        self.u: I = None
        self.o: F = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: H = None
        self.s: H = None
        self.p: B = None
        self.y: G = None
        self.v: C = None
        self.txt = txt

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

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

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