using System;
using System.Collections.Generic;
public class Program {
    public static void Main() {
        
        string input = Console.ReadLine();
        int[] result = new int[3];

        foreach(var chr in input)
        {
            if(chr == 'R')
            result[0]++;
            else if(chr == 'G')
            result[1]++;
            else
            result[2]++;
        }
        Console.WriteLine("(" + result[0]+","+result[1]+","+result[2]+")");
    }
}