import java.util.Scanner; import java.util.Stack; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long N = scan.nextLong(); if(N < 26) { System.out.println((char)(N+'A')); } else { Stack stack = new Stack(); long value = N; while(true) { long tmp1 = value / 26; long tmp2 = value % 26; stack.push(tmp2); if(tmp1 < 26) { stack.push(tmp1); break; } value = tmp1; } while(!stack.empty()) { Long v = stack.pop(); if(!stack.empty()) { v--; } System.out.print((char)(v+'A')); } System.out.println(); } } }