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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: E = None
        self.x: D = None
        self.v: C = None
        self.p: D = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: I = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: E = None
        self.x: D = None
        self.v: C = None
        self.p: D = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: I = None
        self.o: E = None
        self.txt = txt

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

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