import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int b = n / 100;
int s = n / 10 % 10;
int g = n % 10;
for(int i = 0 ; i < b ; i++) {
System.out.print("B");
}
for(int i = 0 ; i < s ; i++) {
System.out.print("S");
}
for(int i = 1 ; i <= g ; i++) {
System.out.print(i);
}
}
}