import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
long a10 = in.nextLong();
String str16 = Long.toHexString(a10).toUpperCase();
System.out.println(str16);
in.close();
}
}