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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: G = None
        self.z: C = None
        self.q: G = None
        self.u: F = None
        self.t: H = None
        self.w: G = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: B = None
        self.q: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: E = None
        self.y: C = None
        self.txt = txt

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

i = A("i")
e = B("e")
n = C("n")
g = D("g")
b = E("b")
f = F("f")
l = G("l")
m = H("m")

i.w = n
i.r = m
e.p = g
e.y = l
e.q = l
e.w = l
e.o = l
e.z = n
e.u = f
e.t = m
n.y = b
n.q = b
n.o = m
g.s = m
g.o = l
b.w = e
b.o = e
b.q = g
b.v = n
f.u = b
f.w = i
f.o = g
l.o = g
l.u = b
l.y = n
m.y = f
m.s = i
assert n.o.s.w.o.s.r.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: G = None
        self.z: C = None
        self.q: G = None
        self.u: F = None
        self.t: H = None
        self.w: G = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: B = None
        self.q: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: E = None
        self.y: C = None
        self.txt = txt

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

i = A("i")
e = B("e")
n = C("n")
g = D("g")
b = E("b")
f = F("f")
l = G("l")
m = H("m")

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