#include<stdio.h>
int main(){
int n=0;
int i=0,j=0;
int ge=0,shi=0,bai=0;
int temp=0;
scanf("%d",&n);
if(n>0&&n<10){
for(i=1;i<=n;i++){
printf("%d",i);
}
}
if(n>9&&n<100){
ge=n%10;
if(ge==0){
shi=n/10;
for(int k=0;k<shi;k++){
printf("%s","S");
}
}else{
temp=n/10;
shi=temp%10;
for(j=0;j<shi;j++){
printf("%s","S");
}
for(i=1;i<=ge;i++){
printf("%d",i);
}
}
}
if(n>99&&n<1000){
ge=n%10;
if(ge==0){
temp=n/10;
shi=temp%10;
temp=temp/10;
bai=temp%10;
for(int p=0;p<bai;p++){
printf("%s","B");}
for(int k=0;k<shi;k++){
printf("%s","S");
}
}else{
temp=n/10;
shi=temp%10;
temp=temp/10;
bai=temp%10;
for(i=0;i<bai;i++){
printf("%s","B");
}
for(j=0;j<shi;j++){
printf("%s","S");
}
for(i=1;i<=ge;i++){
printf("%d",i);
}
}
}
return 0;
}