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

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

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

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

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

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

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

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

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

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

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

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

d.y = g
d.r = e
d.p = n
b.x = i
b.u = e
k.z = e
k.w = e
k.q = d
k.s = g
k.r = n
h.s = i
h.w = b
h.p = e
h.t = k
h.y = j
e.z = i
e.v = k
j.z = e
j.w = e
j.q = i
j.s = g
j.r = n
a.y = g
a.r = e
a.p = n
n.x = i
n.u = e
g.s = d
g.w = n
g.p = e
g.t = j
g.y = j
i.y = g
i.r = e
i.p = n
assert k.s.y.z.v.r.x.r.txt == "e"