#include<stdio.h>
#include<iostream>
#include<map>
#include<algorithm>
using namespace std;
#define maxn 222222
char si[maxn],s2[maxn];
int sl1,sl2,i,j;
unsigned int ha,hh[maxn],n;
map<unsigned int,int>was;
int main(){
freopen("bad-hashing.in","r",stdin);
freopen("bad-hashing.out","w",stdout);
srand(time(NULL));
cin>>n;
ha=0;
for(i=1;i<=100000;i++){
si[i]=97;sl1=i;
ha=ha*n+si[i];
hh[i]=ha;
if(was[ha]){
for(j=1;j<=i;j++)putchar(97);puts("");
for(j=1;j<=was[ha];j++)putchar(97);puts("");
return 0;
}
was[ha]=i;
}
while(1);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPG1hcD4KI2luY2x1ZGU8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojZGVmaW5lIG1heG4gMjIyMjIyCmNoYXIgc2lbbWF4bl0sczJbbWF4bl07CmludCBzbDEsc2wyLGksajsKdW5zaWduZWQgaW50IGhhLGhoW21heG5dLG47Cm1hcDx1bnNpZ25lZCBpbnQsaW50PndhczsKaW50IG1haW4oKXsKCWZyZW9wZW4oImJhZC1oYXNoaW5nLmluIiwiciIsc3RkaW4pOwoJZnJlb3BlbigiYmFkLWhhc2hpbmcub3V0IiwidyIsc3Rkb3V0KTsKCXNyYW5kKHRpbWUoTlVMTCkpOwoJY2luPj5uOwoJaGE9MDsKCWZvcihpPTE7aTw9MTAwMDAwO2krKyl7CgkJc2lbaV09OTc7c2wxPWk7CgkJaGE9aGEqbitzaVtpXTsKCQloaFtpXT1oYTsKCQlpZih3YXNbaGFdKXsKCQkJZm9yKGo9MTtqPD1pO2orKylwdXRjaGFyKDk3KTtwdXRzKCIiKTsKCQkJZm9yKGo9MTtqPD13YXNbaGFdO2orKylwdXRjaGFyKDk3KTtwdXRzKCIiKTsKCQkJcmV0dXJuIDA7CgkJfQoJCXdhc1toYV09aTsKCX0KCXdoaWxlKDEpOwoJcmV0dXJuIDA7Cn0=