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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: J = None
        self.x: G = None
        self.u: A = None
        self.w: H = None
        self.t: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: D = None
        self.r: D = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: A = None
        self.w: B = None
        self.r: E = None
        self.o: E = None
        self.p: J = None
        self.x: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: A = None
        self.p: H = None
        self.v: E = None
        self.x: C = None
        self.q: F = None
        self.r: D = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: J = None
        self.x: G = None
        self.u: A = None
        self.w: H = None
        self.t: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: D = None
        self.r: D = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: A = None
        self.w: B = None
        self.r: E = None
        self.o: E = None
        self.p: J = None
        self.x: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: A = None
        self.p: H = None
        self.v: E = None
        self.x: C = None
        self.q: F = None
        self.r: D = None
        self.w: D = None
        self.txt = txt

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

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