// Arup Guha
// 12/5/2015
// Solution to Fall 2015 UCF HS Online Contest Problem: Nanomachines, Son!

import java.util.*;

public class nano {

	final public static String CUTS = "-|\\/";

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();

		// Process each case.
		for (int loop=1; loop<=numCases; loop++) {

			// Read in the string.
			String line = stdin.next();

			// Count the number of occurrences of the given characters.
			int res = 1;
			for (int i=0; i<line.length(); i++)
				if (CUTS.contains(""+line.charAt(i)))
					res++;

			// Output result.
			if (res > 1)
				System.out.println("Cyborg #"+loop+": "+res+" pieces!");
			else
				System.out.println("Cyborg #"+loop+": 1 piece? You're supposed to be stronger than this!");

		}
	}
}