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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: E = None
        self.p: C = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: B = None
        self.y: B = None
        self.o: A = None
        self.w: A = None
        self.r: E = None
        self.txt = txt

i = A("i")
n = B("n")
e = C("e")
a = D("a")
b = E("b")
l = F("l")
h = D("h")
m = A("m")

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: E = None
        self.p: C = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: B = None
        self.y: B = None
        self.o: A = None
        self.w: A = None
        self.r: E = None
        self.txt = txt

i = A("i")
n = B("n")
e = C("e")
a = D("a")
b = E("b")
l = F("l")
h = D("h")
m = A("m")

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