import java.util.Scanner;

public class ShapeIdentifier {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt(); // number of dimensions
        double[] dimensions = new double[n];
        
        // Read dimensions
        for (int i = 0; i < n; i++) {
            dimensions[i] = sc.nextDouble();
            if (dimensions[i] <= 0) {
                System.out.println("Invalid input");
                return;
            }
        }

        String shape = identifyShape(n, dimensions);
        System.out.println(shape);
    }

    private static String identifyShape(int n, double[] d) {
        switch (n) {
            case 1:
                return "Circle";

            case 2:
                if (d[0] == d[1]) return "Square";
                else return "Rectangle";

            case 3:
                if (d[0] == d[1] && d[1] == d[2]) return "Cube";
                else return "Triangle";

            default:
                return "Invalid input"; // safeguard (though n is 1–3 as per constraints)
        }
    }
}
