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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: H = None
        self.z: F = None
        self.o: H = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: H = None
        self.v: I = None
        self.t: F = None
        self.r: J = None
        self.x: E = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: F = None
        self.p: I = None
        self.t: F = None
        self.u: B = None
        self.o: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: J = None
        self.x: A = None
        self.w: G = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: H = None
        self.z: F = None
        self.o: H = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: H = None
        self.v: I = None
        self.t: F = None
        self.r: J = None
        self.x: E = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: F = None
        self.p: I = None
        self.t: F = None
        self.u: B = None
        self.o: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: J = None
        self.x: A = None
        self.w: G = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

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

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

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