import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    } main {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int count = 1; count 1 while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	} scan.hasNext() scan.hasNext scan {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	} String input = scan.next(); input scan.next() scan.next scan if (input.equals("0")) {
		break;
	    } input.equals("0") input.equals input "0" {
		break;
	    } break; System.out.println("Case " + count++ + ": " + input) System.out.println System.out System System.out "Case " + count++ + ": " + input ": " "Case " + count++ + ": " + input "Case " count++ count ": " input String[] args args public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    }
} public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int count = 1;
	while(scan.hasNext()) {
	    String input = scan.next();
	    if (input.equals("0")) {
		break;
	    }
	    System.out.println("Case " + count++ + ": " + input);
	}
    }
}