using System; public class Solution { public static void Main() { var n = long.Parse(Console.ReadLine()); Console.WriteLine(((n % 3) == 0) ? "X" : "O"); } }