class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: F = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: E = None
        self.y: B = None
        self.u: H = None
        self.p: D = None
        self.q: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: B = None
        self.v: H = None
        self.z: C = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: C = None
        self.t: C = None
        self.q: A = None
        self.o: G = None
        self.u: A = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: H = None
        self.r: E = None
        self.s: D = None
        self.z: G = None
        self.x: F = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: E = None
        self.y: B = None
        self.u: H = None
        self.p: D = None
        self.q: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: B = None
        self.v: H = None
        self.z: C = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: C = None
        self.t: C = None
        self.q: A = None
        self.o: G = None
        self.u: A = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: H = None
        self.r: E = None
        self.s: D = None
        self.z: G = None
        self.x: F = None
        self.q: H = None
        self.txt = txt

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

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