class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: H = None
        self.x: B = None
        self.s: I = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: E = None
        self.s: C = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: E = None
        self.s: B = None
        self.v: I = None
        self.t: D = None
        self.z: F = None
        self.p: F = None
        self.y: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: A = None
        self.u: H = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: E = None
        self.s: C = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: E = None
        self.s: B = None
        self.v: I = None
        self.t: D = None
        self.z: F = None
        self.p: F = None
        self.y: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: A = None
        self.u: H = None
        self.z: B = None
        self.txt = txt

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

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