#include<stdio.h>

int main(){
  unsigned long long a[20];
  unsigned long long b[20];
  char n[20];
  int cnt,i;
  unsigned long long A;
  	scanf("%ull",&A);
    b[0] = (unsigned long long)A%26;
    a[0] = (unsigned long long)A/26;
		printf("%u\n%u\n",a[0],b[0]); 
 	for(i=0;i<20;i++){
      if(a[i] == 0){
        cnt = i;
        break;
      }
  	b[i+1] = a[i]%26;
    a[i+1] = a[i]/26;

    }
  	for(i=0;i<cnt;i++){
     	printf("%u\n%u\n",a[i],b[i]); 
    }
  	for(i=cnt;i>=0;i--){
      	if(b[i] != 0){
    		n[i] = b[i]+96;
        }else{
         	n[i] = 122;
        }
    }
  	for(i=cnt;i>=0;i--){
     	printf("%c",n[i]); 
    }
  
}