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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.s: H = None
        self.t: F = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.txt = txt

i = A("i")
l = B("l")
n = C("n")
k = D("k")
e = E("e")
c = F("c")
j = G("j")
f = H("f")
a = C("a")
m = D("m")

i.w = l
i.r = l
i.u = e
i.s = e
l.o = a
l.u = e
l.s = f
l.v = f
l.t = c
l.y = j
n.v = c
n.x = k
n.u = i
k.y = a
k.v = a
k.w = f
e.s = l
e.r = i
e.v = i
c.z = i
j.t = k
j.q = e
j.y = f
f.v = l
f.z = k
a.v = c
a.x = m
a.u = i
m.y = n
m.v = n
m.w = f
assert f.z.w.v.y.q.s.t.z.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: E = None
        self.r: B = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.s: H = None
        self.t: F = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.txt = txt

i = A("i")
l = B("l")
n = C("n")
k = D("k")
e = E("e")
c = F("c")
j = G("j")
f = H("f")
a = C("a")
m = D("m")

i.w = l
i.r = l
i.u = e
i.s = e
l.o = a
l.u = e
l.s = f
l.v = f
l.t = c
l.y = j
n.v = c
n.x = k
n.u = i
k.y = a
k.v = a
k.w = f
e.s = l
e.r = i
e.v = i
c.z = i
j.t = k
j.q = e
j.y = f
f.v = l
f.z = k
a.v = c
a.x = m
a.u = i
m.y = n
m.v = n
m.w = f
assert f.z.w.v.y.q.s.t.z.w.txt == "l"