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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: B = None
        self.u: G = None
        self.v: I = None
        self.w: A = None
        self.o: D = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: B = None
        self.u: G = None
        self.v: I = None
        self.w: A = None
        self.o: D = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.s: F = None
        self.txt = txt

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

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