/**
换个格式输出整数(15)
让我们用字母B来表示“百”、字母S表示“十”,用“12...n”来表示个位数字n(<10),
换个格式来输出任一个不超过3位的正整数。
例如234应该被输出为BBSSS1234,因为它有2个“百”、3个“十”、以及个位的4。
输入格式:每个测试输入包含1个测试用例,给出正整数n(<1000)。
输出格式:每个测试用例的输出占一行,用规定的格式输出n。
输入样例1:
234
输出样例1:
BBSSS1234
*/
import java.util.Scanner;
public class Test_1006 {
public static void main(String[]args){
Scanner input =new Scanner(System.in);
//输入一个整数
int n=input.nextInt(); //n=234
input.close();
int a=n/100; //a=2
int b=n%100/10; //b=3
int c=n%100%10; //c=4
for(int j=0;j<a;j++){System.out.print("B");}
for(int j=0;j<b;j++){System.out.print("S");}
for(int j=0;j<c;j++){System.out.print(j+1);}
}
}