class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.w: F = None
        self.u: D = None
        self.s: F = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.u: C = None
        self.q: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: D = None
        self.y: D = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: C = None
        self.w: J = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: C = None
        self.r: E = None
        self.q: F = None
        self.z: J = None
        self.u: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: D = None
        self.q: D = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.u: C = None
        self.q: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: D = None
        self.y: D = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: C = None
        self.w: J = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: C = None
        self.r: E = None
        self.q: F = None
        self.z: J = None
        self.u: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: D = None
        self.q: D = None
        self.z: A = None
        self.txt = txt

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

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