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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.o: E = None
        self.txt = txt

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

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

e.y = j
e.o = n
e.x = l
e.r = h
e.w = i
l.s = i
l.w = i
l.p = i
l.u = g
l.z = n
i.q = j
i.u = e
i.s = e
i.w = g
i.x = h
j.x = e
j.s = i
j.o = k
g.z = e
g.x = i
g.v = n
g.s = n
n.y = j
n.o = e
n.x = l
n.r = l
n.w = i
k.z = n
k.v = n
k.s = n
k.x = i
h.s = i
h.w = i
h.p = i
h.u = k
h.z = n
assert g.v.o.y.o.x.q.o.txt == "k"