class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: G = None
        self.q: G = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: E = None
        self.u: I = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: I = None
        self.w: A = None
        self.x: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: D = None
        self.t: G = None
        self.u: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: G = None
        self.q: G = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: E = None
        self.u: I = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: I = None
        self.w: A = None
        self.x: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: D = None
        self.t: G = None
        self.u: H = None
        self.txt = txt

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

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