class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: G = None
        self.w: D = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: J = None
        self.p: I = None
        self.x: J = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: B = None
        self.z: H = None
        self.v: I = None
        self.r: E = None
        self.w: H = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: H = None
        self.v: H = None
        self.u: A = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: J = None
        self.p: I = None
        self.x: J = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: B = None
        self.z: H = None
        self.v: I = None
        self.r: E = None
        self.w: H = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: H = None
        self.v: H = None
        self.u: A = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

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

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