import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String line = br.readLine();
    int i = 1;
    do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0")));
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String line = br.readLine();
    int i = 1;
    do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0")));
  }
} Main public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String line = br.readLine();
    int i = 1;
    do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0")));
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String line = br.readLine();
    int i = 1;
    do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0")));
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int i = 1; i 1 do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0"))); !(line.equals("0")) (line.equals("0")) line.equals line "0" {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } System.out.println("Case "+i+": "+line) System.out.println System.out System System.out "Case "+i+": "+line ": " "Case "+i+": "+line "Case " i ": " line line = br.readLine() line br.readLine() br.readLine br i++ i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String line = br.readLine();
    int i = 1;
    do {
      System.out.println("Case "+i+": "+line);
      line = br.readLine();
      i++;
    } while (!(line.equals("0")));
  }
}