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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: D = None
        self.v: D = None
        self.p: E = None
        self.z: G = None
        self.w: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: G = None
        self.x: J = None
        self.y: H = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: J = None
        self.x: I = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: I = None
        self.v: I = None
        self.s: H = None
        self.t: F = None
        self.r: A = None
        self.u: F = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: D = None
        self.v: D = None
        self.p: E = None
        self.z: G = None
        self.w: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: G = None
        self.x: J = None
        self.y: H = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: J = None
        self.x: I = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: I = None
        self.v: I = None
        self.s: H = None
        self.t: F = None
        self.r: A = None
        self.u: F = None
        self.o: E = None
        self.txt = txt

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

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