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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: C = None
        self.p: B = None
        self.o: E = None
        self.z: G = None
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: I = None
        self.v: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: H = None
        self.o: E = None
        self.q: G = None
        self.t: B = None
        self.x: D = None
        self.w: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: C = None
        self.p: B = None
        self.o: E = None
        self.z: G = None
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: I = None
        self.v: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: H = None
        self.o: E = None
        self.q: G = None
        self.t: B = None
        self.x: D = None
        self.w: E = None
        self.txt = txt

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

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