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

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

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.z: D = None
        self.w: E = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.txt = txt

n = A("n")
d = B("d")
a = C("a")
i = D("i")
k = E("k")
j = F("j")
l = B("l")
e = C("e")

n.y = k
n.p = d
n.t = e
n.v = l
n.x = j
n.s = j
d.x = e
d.v = e
d.y = l
d.o = l
d.r = a
a.u = e
a.v = k
a.w = k
a.r = k
a.z = i
a.o = i
i.u = n
i.r = n
i.o = k
k.w = j
k.r = i
k.v = d
k.o = n
j.o = i
j.r = e
l.x = e
l.v = e
l.y = d
l.o = d
l.r = a
e.u = a
e.v = k
e.w = k
e.r = k
e.z = i
e.o = i
assert k.o.y.w.r.z.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: B = None
        self.t: C = None
        self.v: B = None
        self.x: F = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.z: D = None
        self.w: E = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.txt = txt

n = A("n")
d = B("d")
a = C("a")
i = D("i")
k = E("k")
j = F("j")
l = B("l")
e = C("e")

n.y = k
n.p = d
n.t = e
n.v = l
n.x = j
n.s = j
d.x = e
d.v = e
d.y = l
d.o = l
d.r = a
a.u = e
a.v = k
a.w = k
a.r = k
a.z = i
a.o = i
i.u = n
i.r = n
i.o = k
k.w = j
k.r = i
k.v = d
k.o = n
j.o = i
j.r = e
l.x = e
l.v = e
l.y = d
l.o = d
l.r = a
e.u = a
e.v = k
e.w = k
e.r = k
e.z = i
e.o = i
assert k.o.y.w.r.z.r.v.txt == "l"