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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: A = None
        self.s: E = None
        self.w: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

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

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

j.r = k
j.p = e
j.v = i
j.z = h
e.v = m
e.z = b
l.r = n
l.t = k
l.s = i
l.p = i
l.w = j
m.w = e
m.q = j
m.u = l
i.t = e
i.s = e
b.w = e
b.q = j
b.u = d
k.r = j
k.p = e
k.v = i
k.z = l
n.w = e
n.q = j
n.u = l
d.r = n
d.t = j
d.w = j
d.s = i
d.p = i
h.r = n
h.t = k
h.s = i
h.p = i
h.w = j
assert j.z.w.v.t.v.u.r.q.txt == "
class A:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: B = None
        self.v: E = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: A = None
        self.s: E = None
        self.w: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

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

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

j.r = k
j.p = e
j.v = i
j.z = h
e.v = m
e.z = b
l.r = n
l.t = k
l.s = i
l.p = i
l.w = j
m.w = e
m.q = j
m.u = l
i.t = e
i.s = e
b.w = e
b.q = j
b.u = d
k.r = j
k.p = e
k.v = i
k.z = l
n.w = e
n.q = j
n.u = l
d.r = n
d.t = j
d.w = j
d.s = i
d.p = i
h.r = n
h.t = k
h.s = i
h.p = i
h.w = j
assert j.z.w.v.t.v.u.r.q.txt == "j"