str=input()
r=0
g=0
b=0
for i in str:
    if i == "R":
        r +=1
    elif i == "G":
        g +=1
    else:
        b +=1
print(f"({r},{g},{b})")