Let be a sequence of integer numbers such that . For every integer number and every index , define . Write a program that, given and , tells whether there is some such that .
Input consists of several cases. Every case begins with , followed by , followed by a number , followed by different integer numbers . Assume .
For every case, print its number starting at 1. Afterwards, for every print the position of its fixed point. If no fixed point exists, state so. If there is more than one fixed point, print the smallest one. Print a blank line after the output for every case.
Input
5 -7 -2 0 4 8 1 0 5 0 1 2 3 4 3 0 -1 1
Output
Sequence #1 fixed point for 0: 4 Sequence #2 no fixed point for 0 no fixed point for -1 fixed point for 1: 1