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

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

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: H = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: J = None
        self.y: J = None
        self.v: B = None
        self.u: G = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: G = None
        self.y: E = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: H = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: J = None
        self.y: J = None
        self.v: B = None
        self.u: G = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: G = None
        self.y: E = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.txt = txt

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

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

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

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