class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: I = None
        self.r: J = None
        self.w: I = None
        self.v: J = None
        self.z: E = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.v: F = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: B = None
        self.r: A = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: H = None
        self.y: J = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: C = None
        self.r: G = None
        self.v: G = None
        self.s: D = None
        self.x: D = None
        self.o: G = None
        self.t: A = None
        self.y: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: B = None
        self.o: G = None
        self.z: G = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: I = None
        self.r: J = None
        self.w: I = None
        self.v: J = None
        self.z: E = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.v: F = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: B = None
        self.r: A = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: H = None
        self.y: J = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: C = None
        self.r: G = None
        self.v: G = None
        self.s: D = None
        self.x: D = None
        self.o: G = None
        self.t: A = None
        self.y: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: B = None
        self.o: G = None
        self.z: G = None
        self.v: H = None
        self.txt = txt

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

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