using System; public class Test { static void Main(string[] args) { int x = 1, y = 0; int K = Convert.ToInt32(Console.ReadLine()); for(;;) { x += 2 * y; y = 5 * y - 2 * x; if (x > K || y > K) break; } Console.WriteLine("x = " + x + " y = " + y); } }