#include <stdio.h>int main(){ int n; scanf("%d",&n); while(1){ printf("%c",((n-1)%26)+65); n = (n-1) / 26; if(n==0) break; }}