i=int(input()) if 0<=i<=50: print('S') elif 50<i<=90: print('SS') elif 90<i<=100: print('SSS') else: print('error')