Gugugaga can say only the following four words.
gugagugugagugagagugugagaYou are given a string formed by concatenating the words spoken by Gugugaga in order, without spaces. Find how many times Gugugaga said each word.
Count the words that were concatenated to form , rather than strings appearing inside other words. For example, if is gugaga, Gugugaga said gugaga once. Its prefix guga is not counted as a separately spoken word.
The input is given in the following format.
For each test case, print four space-separated integers on one line: the numbers of times Gugugaga said guga, guguga, gugaga, and gugugaga, in that order.
In the first test case, Gugugaga said only guga, once. In the second test case, Gugugaga said only gugugaga, once.
The string is formed by saying guga, guguga, gugaga, and gugugaga once each, in that order.
In the first test case, the spoken words were gugaga, gugaga, and guga, in that order.
In the second test case, they were gugugaga, guguga, and gugugaga, in that order.
The first line contains the number of test cases . Each test case is given in the following format.
Each test case consists of one line containing the string .
gua