class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: C = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: F = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: J = None
        self.r: C = None
        self.w: J = None
        self.s: G = None
        self.x: B = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: C = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: F = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: J = None
        self.r: C = None
        self.w: J = None
        self.s: G = None
        self.x: B = None
        self.z: C = None
        self.txt = txt

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

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

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

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