class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: G = None
        self.y: G = None
        self.p: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.t: H = None
        self.o: F = None
        self.u: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.y: C = None
        self.o: I = None
        self.w: C = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.q: F = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.t: H = None
        self.o: F = None
        self.u: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.y: C = None
        self.o: I = None
        self.w: C = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.q: F = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

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

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

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