B1006
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
int num = 0, ans[5];
while( n!= 0){ // 将 n 的每一位存放到ans 数组中
ans[num++] = n%10;
n /= 10;
}
for (int i = num-1; i>=0; i--){
switch(i){
case 2:
for (int j=0; j<ans[i]; j++)
printf("B");
break;
case 1:
for (int j=0; j<ans[i]; j++)
printf("S");
break;
case 0:
for (int j=1; j<=ans[i]; j++)
printf("%d", j);
break;
}
}
return 0;
}