【Basic Level】
*1006
#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int n = 0;
cin >> n;
int a = 0, b = 0, c = 0;
c = n % 10;
b = n / 10 % 10;
a = n / 100;
while(a--)
{
cout << 'B';
}
while (b--)
{
cout << 'S';
}
int i = 0;
while (i < c)
{
cout << ++i;
}
cout << endl;
//system("pause");
return 0;
}