#include <stdio.h>
#include <string.h>
int Put_Ge(int b)
{
for(int i=1;i<=b;i++){
printf("%d",i);
}
}
int main()
{
int a;
int bai;
int shi;
int ge;
scanf("%d",&a);
bai = a/100;
shi = (a/10)%10;
ge = a%10;
//输出百位数和十位数
char BAI[][20]={"B","B","BB","BBB","BBBB","BBBBB","BBBBBB","BBBBBBB","BBBBBBBB","BBBBBBBBB",};
char SHI[][20]={"S","S","SS","SSS","SSSS","SSSSS","SSSSSS","SSSSSSS","SSSSSSSS","SSSSSSSSS",};
if(a>99){
printf("%s%s",BAI[bai],SHI[shi]);
int GE = Put_Ge(ge);
}
if(a<100){
printf("%s",SHI[shi]);
int GE = Put_Ge(ge);
}
return 0;
}