#include <iostream> using namespace std; int main() { int n; cin >> n; if (n >= 100){ for (int i = 0; i < n / 100; ++i) cout << "B"; n %= 100; } if (n >= 10){ for (int i = 0; i < n / 10; ++i) cout << "S"; n %= 10; } for (int i = 0; i < n; ++i) cout << i + 1; cout << endl; }