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

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

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

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

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

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

j.s = a
j.x = m
j.t = k
j.v = l
j.r = b
a.p = k
l.v = h
l.t = h
l.y = j
l.p = f
h.r = b
m.y = b
m.x = h
m.s = h
m.o = h
m.z = j
b.p = k
f.y = b
f.x = h
f.s = h
f.o = h
f.z = j
n.v = h
n.t = h
n.y = j
n.p = f
k.y = b
k.x = h
k.s = h
k.o = h
k.z = j
assert k.y.p.s.r.p.s.r.p.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: E = None
        self.t: E = None
        self.v: C = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

j.s = a
j.x = m
j.t = k
j.v = l
j.r = b
a.p = k
l.v = h
l.t = h
l.y = j
l.p = f
h.r = b
m.y = b
m.x = h
m.s = h
m.o = h
m.z = j
b.p = k
f.y = b
f.x = h
f.s = h
f.o = h
f.z = j
n.v = h
n.t = h
n.y = j
n.p = f
k.y = b
k.x = h
k.s = h
k.o = h
k.z = j
assert k.y.p.s.r.p.s.r.p.txt == "k"