import java.util.Scanner;
 
class Main {
    public static void main(String args[]) {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        }  
            System.out.print(sb);
            sb.setLength(0);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String args[]) {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        }  
            System.out.print(sb);
            sb.setLength(0);
    }
} Main public static void main(String args[]) {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        }  
            System.out.print(sb);
            sb.setLength(0);
    } main {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        }  
            System.out.print(sb);
            sb.setLength(0);
    } StringBuilder sb = new StringBuilder(); sb new StringBuilder() Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int i = 0; i 0 while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        } true {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        } i++ i int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if(x == 0) {
                break;                                              
            } x == 0 x 0 {
                break;                                              
            } break; sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n") sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append sb.append("Case").append(" ").append(i + ":").append(" ").append(x) sb.append("Case").append(" ").append(i + ":").append(" ").append sb.append("Case").append(" ").append(i + ":").append(" ") sb.append("Case").append(" ").append(i + ":").append sb.append("Case").append(" ").append(i + ":") sb.append("Case").append(" ").append sb.append("Case").append(" ") sb.append("Case").append sb.append("Case") sb.append sb "Case" " " i + ":" i ":" " " x "\n" System.out.print(sb) System.out.print System.out System System.out sb sb.setLength(0) sb.setLength sb 0 String args[] args
import java.util.Scanner;
 
class Main {
    public static void main(String args[]) {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case").append(" ").append(i + ":").append(" ").append(x).append("\n");

        }  
            System.out.print(sb);
            sb.setLength(0);
    }
}