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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: C = None
        self.x: A = None
        self.v: A = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.w: D = None
        self.v: E = None
        self.p: E = None
        self.txt = txt

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

i.s = m
i.v = n
i.w = h
i.p = b
i.o = l
i.u = l
i.r = f
i.y = e
i.z = a
e.p = m
e.o = m
e.v = l
e.u = h
e.q = n
e.s = b
n.o = f
n.t = f
n.p = a
n.x = d
n.y = b
n.v = l
l.x = m
l.r = a
l.v = a
l.z = d
l.y = d
l.p = b
l.q = h
m.s = f
m.p = i
h.w = b
h.p = l
b.o = i
b.x = i
b.v = i
b.w = i
b.r = n
a.x = b
f.s = m
f.v = m
f.p = m
f.x = i
f.w = l
d.p = m
d.o = m
d.v = l
d.u = h
d.q = n
d.s = b
assert e.o.s.v.s.s.s.p.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: C = None
        self.w: F = None
        self.p: G = None
        self.o: D = None
        self.r: I = None
        self.y: B = None
        self.u: D = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: C = None
        self.x: A = None
        self.v: A = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.w: D = None
        self.v: E = None
        self.p: E = None
        self.txt = txt

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

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