import java.util.Scanner; public class Test { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long n = sc.nextLong(); String s = ""; s += (char) ('A' + (n % 26)); n /= 26; while (n > 26) { if (n % 26 > 0) { s = (char) ('A' + (n % 26) - 1) + s; } n /= 26; } s = (char) ('A' + (n % 27) - 1) + s; System.out.println(s); } }