word = list(input()) r=0 g=0 b=0 for letter in word: if letter == 'R': r+=1 elif letter == 'G': g+=1 elif letter == 'B': b+=1 print(f"({r},{g},{b})")