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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: E = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.z: E = None
        self.x: E = None
        self.q: E = None
        self.txt = txt

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

k = A("k")
l = B("l")
f = C("f")
b = D("b")
m = E("m")
i = B("i")
h = C("h")
n = D("n")

k.w = l
k.y = i
k.x = m
l.u = m
l.z = m
l.q = m
l.v = k
f.y = h
f.w = h
f.r = l
b.r = n
b.v = f
b.z = m
b.x = m
b.q = m
m.u = f
i.u = m
i.z = m
i.q = m
i.v = k
h.y = f
h.w = f
h.r = i
n.r = b
n.v = f
n.z = m
n.x = m
n.q = m
assert b.v.r.v.w.v.y.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: B = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: E = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.z: E = None
        self.x: E = None
        self.q: E = None
        self.txt = txt

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

k = A("k")
l = B("l")
f = C("f")
b = D("b")
m = E("m")
i = B("i")
h = C("h")
n = D("n")

k.w = l
k.y = i
k.x = m
l.u = m
l.z = m
l.q = m
l.v = k
f.y = h
f.w = h
f.r = l
b.r = n
b.v = f
b.z = m
b.x = m
b.q = m
m.u = f
i.u = m
i.z = m
i.q = m
i.v = k
h.y = f
h.w = f
h.r = i
n.r = b
n.v = f
n.z = m
n.x = m
n.q = m
assert b.v.r.v.w.v.y.v.w.txt == "l"