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

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

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

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

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

l = A("l")
k = B("k")
i = C("i")
b = D("b")
a = E("a")
m = E("m")
j = B("j")
f = A("f")
e = E("e")

l.v = i
l.y = i
l.w = i
l.x = j
l.r = e
k.w = j
k.r = j
k.q = f
k.p = e
i.p = b
i.y = a
i.v = m
b.v = m
b.r = l
b.q = k
a.v = f
a.t = i
a.w = k
m.v = l
m.t = i
m.w = k
j.w = k
j.r = k
j.q = f
j.p = m
f.v = i
f.y = i
f.w = i
f.x = k
f.r = m
e.v = l
e.t = i
e.w = j
assert k.q.y.y.v.r.w.q.y.txt == "
class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.x: B = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

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

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

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

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

l = A("l")
k = B("k")
i = C("i")
b = D("b")
a = E("a")
m = E("m")
j = B("j")
f = A("f")
e = E("e")

l.v = i
l.y = i
l.w = i
l.x = j
l.r = e
k.w = j
k.r = j
k.q = f
k.p = e
i.p = b
i.y = a
i.v = m
b.v = m
b.r = l
b.q = k
a.v = f
a.t = i
a.w = k
m.v = l
m.t = i
m.w = k
j.w = k
j.r = k
j.q = f
j.p = m
f.v = i
f.y = i
f.w = i
f.x = k
f.r = m
e.v = l
e.t = i
e.w = j
assert k.q.y.y.v.r.w.q.y.txt == "i"