import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); if (n % 4 != 3) { System.out.println("O"); }else{ System.out.println("X"); } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }