SPOJ - Fibonacci with a Twist