import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); System.out.println(solve(sc.nextLong())); sc.close(); } public static String solve (long n) { String[] alp = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; String ret = alp[(int)(n % 26)]; long d = 26; while (n / d >= 1) { int i = (int)(n / d % 26) - 1; if (i == -1) i = 25; ret = alp[i] + ret; n -= d; d *= 26; } return ret; } }