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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: D = None
        self.t: D = None
        self.s: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: F = None
        self.t: D = None
        self.p: G = None
        self.z: F = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.q: A = None
        self.o: J = None
        self.y: B = None
        self.z: F = None
        self.p: I = None
        self.r: I = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: A = None
        self.z: C = None
        self.w: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: D = None
        self.t: D = None
        self.s: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: F = None
        self.t: D = None
        self.p: G = None
        self.z: F = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.q: A = None
        self.o: J = None
        self.y: B = None
        self.z: F = None
        self.p: I = None
        self.r: I = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: A = None
        self.z: C = None
        self.w: D = None
        self.txt = txt

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

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