#include<stdio.h>
int main() {
	
	char ktae1[106];
	char ktae2[108];
	scanf("%s %s", &ktae1, &ktae2);
	printf("%s%s", ktae2, ktae1);

	return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main(){
    long N;
    cin >> N;
    N--;
    string name = "";
    char digit = 'a';
    while (N >= 0) {
        if (N % 26 != 0) {
            digit = 'a' + N % 26;
        } else {
            digit = 'a';
            
        }
        name = digit + name;
        N = N / 26 - 1;
        
    }
    cout << name << endl;
}
