#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>

using namespace std;

int main() {
  int i, in;
  i = 0;
  while (true) {
    i++;
    cin >> in;
    if (i == 0)
      break;
    printf("Case %d: %d\\n", i, in);
  }

  return 0;
}

#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>

using namespace std;

int main() {
  int i, in;
  i = 0;
  while (true) {
    i++;
    cin >> in;
    if (in == 0)
      break;
    printf("Case %d: %d\\n", i, in);
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int i, x;
  i = 1;
  cin >> x;
  while (i > 0) {
    if (x = 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i = i + 1;
    cin >> x;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  long x = 1;
  for (long i = 1; x != 0; i++) {
    cin >> x;
    if (x != 0)
      cout << "Case " << i << ": " << x << '\\n';
  }
  return 0;
}


#include <stdio.h>

int main(void) {
  int i, x;
  for (i = 1;; i++) {
    scanf("%5d", &x);
    printf("Case%d;%d\\n", i, x);
  }
}

#include <stdio.h>

int main(void) {
  int i, x;
  for (i = 1;; i++) {
    scanf("%5d", &x);
    if (x == 0) {
      break;
    }
    if (x > 1 && 10000 < x) {
      break;
    }
    printf("Case %d: %d\\n", i, x);
  }
}


#include <iostream>
using namespace std;
int main() {
  int x, i;
  for (i = 1; i >= 1; i += 1)
    while (1) {
      cin >> x;
      if (x == 0)
        break;
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
      break;
      return 0;
    }
}

#include <iostream>
using namespace std;
int main() {
  int x, y;
  y = 0;
  while (1) {
    cin >> x;
    if (x == 0)
      break;
    y = y + 1;
    cout << "Case"
         << " " << y << ":"
         << " " << x << endl;
  }
}


#include <iostream>
#include <string>

using namespace std;

int main() {
  string array[10001];
  int i = 0;
  while (cin >> array[++i], array[i] != "0") {
    cout << "Case " << i << ": " + array[i] << endl;
  }
  return 0;
}

#include <iostream>
#include <string>

using namespace std;

int main() {
  int array[10001];
  int i = 0;
  while (cin >> array[++i]) {
  }
  i = 0;
  while (array[++i]) {
    cout << "Case " << i << ": " << array[i] << endl;
  }
  return 0;
}

Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19


#include <stdio.h>
int main() {
  int i, x, j = 1;
  while (1) {
    scanf("%d", &x);
    if (x = 0)
      break;
    printf("Case %d: %d", &j, &x);
    j++;
  }
  return 0;
}

#include <stdio.h>
int main() {
  int i, x, j = 1;
  while (1) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", j, x);
    j++;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  vector<int> x(10000);
  int idx = 0;
  while (true) {
    cin >> x.at(idx);
    if (x.at(idx) == 0)
      break;
    idx++;
  }
  idx = 0;
  while (x.at(idx) != 0) {
    cout << "Case " << idx + 1 << ": " << x.at(idx) << endl;
    idx++;
  }
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  vector<int> x(10001);
  int idx = 0;
  while (true) {
    cin >> x.at(idx);
    if (x.at(idx) == 0)
      break;
    idx++;
  }
  idx = 0;
  while (x.at(idx) != 0) {
    cout << "Case " << idx + 1 << ": " << x.at(idx) << endl;
    idx++;
  }
}


#include <iostream>

using namespace std;

int main()

{
  int x, i;

  cin >> x;
  for (i = 0;; i++) {
    if (x != 0) {
      cout << "Case " << i++ << ": " << x << endl;
      continue;
    } else
      break;
  }
  return 0;
}

#include <iostream>

using namespace std;

int main()

{
  int x, i;

  for (i = 0;; i++) {
    cin >> x;
    if (x != 0) {
      cout << "Case " << i + 1 << ": " << x << endl;
    } else
      break;
  }
  return 0;
}


#include <stdio.h>
int main(void) {
  int i, a[7];
  for (i = 0; i < 7; i++)
    scanf("%d", a[i]);
  for (i = 0; i < 7; i++)
    printf("Case %d: %d", i + 1, a[i]);

  return 0;
}

#include <stdio.h>
int main(void) {
  int i = 0, x;
  scanf("%d", &x);
  while (x != 0) {
    printf("Case %d: %d\\n", i + 1, x);
    scanf("%d", &x);
    i++;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int n, i = 1;
  cin >> n;
  while (true) {
    if (n == 0) {
      break;
    } else {

      cout << "Case " << i << ": " << n << endl;
      i++;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int n, i = 1;
  while (true) {
    cin >> n;
    if (n == 0) {
      break;
    } else {

      cout << "Case " << i << ": " << n << endl;
      i++;
    }
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x;
  int test[x];
  int y = 0;
  while (test[x]) {
    cin >> test[x];
    y += 1;
  }
  x = y;
  for (int i = 0; i <= x - 1; i++) {
    cout << "Case " << i + 1 << ": " << test[i] << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int i = 0;
  int x;
  int num[10000];
  for (i = 0; i < 10000; i++) {
    cin >> x;
    if (x == 0)
      break;
    num[i] = x;
  }

  for (int h = 0; h < i; h++) {
    cout << "Case " << h + 1 << ": " << num[h] << endl;
  }
  return 0;
}

Case 1: 0
Case 2: 0
Case 3: 0
Case 4: 0
Case 5: 0
Case 6: 0
Case 7: 0


#include <iostream>
using namespace std;
int main() {
  int x, i;
  while (1) {
    cin >> x;
    if (x == 0)
      break;
    for (i = 1; i >= 0; i++) {
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
    }
  }
}

#include <iostream>
using namespace std;
int main() {
  int x, i;
  i = 0;
  while (1) {
    cin >> x;
    if (x == 0)
      break;
    i++;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
  }
}


#include <iostream>

using namespace std;

int main() {
  int i = 0;
  int x;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    i++;
    cout << "case " << i << ": " << x << endl;
  }

  while (1)
    ;

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int i = 0;
  int x;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    i++;
    cout << "Case " << i << ": " << x << endl;
  }

  //	while(1);

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int i = 1, x;
  cin >> x;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int i = 1, x;
  cin >> x;
  while (x != 0) {
    cout << "Case"
         << " " << i++ << ":"
         << " " << x << endl;
    cin >> x;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, cnt = 0;
  while (1) {
    cin >> x;
    if (x = 0) {
      return 0;
    }
    cnt++;
    cout << "Case"
         << " " << cnt << ": " << x << endl;
  }
}

#include <iostream>
using namespace std;
int main() {
  int x, cnt = 0;
  while (1) {
    cin >> x;
    if (x == 0) {
      return 0;
    }
    cnt++;
    cout << "Case"
         << " " << cnt << ": " << x << endl;
  }
}


#include <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i = 1; i++) {
    cout << "Case " << i << ": " << n << endl;
    if (n == 0) {
      break;
    }
  }
  cout << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int n;

  for (int i = 1;; i++) {

    cin >> n;
    if (n == 0) {
      break;
    }
    cout << "Case " << i << ": " << n << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
  int a[10];
  int i, j;
  i = 0;
  a[0] = 1;
  while (a[i] != 0) {
    i += 1;
    cin >> a[i];
  }
  for (j = 1; j < i; j++) {
    cout << "Case " << j << ": " << a[j] << endl;
    cout << " " << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
  int a[10005];
  int i, j;
  i = 0;
  a[0] = 1;
  while (a[i] != 0) {
    i += 1;
    cin >> a[i];
  }
  for (j = 1; j < i; j++) {
    cout << "Case " << j << ": " << a[j] << endl;
  }
  return 0;
}

Case 1: 3

Case 2: 5

Case 3: 11

Case 4: 7

Case 5: 8

Case 6: 19


#include <iostream>
using namespace std;
int main() {
  int x;
  cin >> x;
  while (x > 0) {
    cout << "Case"
         << ":" << x << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x, i;
  cin >> x;
  i = 1;
  while (x > 0) {
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;

    i = i + 1;
    cin >> x;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x, i;
  int n = 10000000;
  cin >> x;
  for (i = 0; i <= n; i++) {
    cout << "Case " << i << ": " << x << endl;
    if (x == 0) {
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  for (int x, i = 1;; i++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  int i = 1;
  while (1) {
    while (1) {
      cin >> x;
      if (x >= 0 && x <= 10000)
        break;
    }

    if (x == 0 && i <= 10000)
      break;

    cout << "Case " << i << ": " << x << endl;

    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  int i = 1;
  while (1) {
    cin >> x;

    if (x == 0)
      break;

    cout << "Case " << i << ": " << x << endl;

    i++;
  }
  return 0;
}


#include <iostream>

int main() {
  int i, x;
  std::cin >> i >> x;

  for (i = 1; x != 0; i++) {
    std::cout << "Case " << i << ": " << x << std::endl;
  }

  return 0;
}

#include <iostream>

int main() {
  int i = 1, x = 0;
  std::cin >> x;

  while (x != 0) {
    std::cout << "Case " << i << ": " << x << std::endl;
    std::cin >> x;
    i++;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  for (int x, t = 1;; t++) {
    cin >> x;
    if (x = 0)
      break;
    cout << "case" << t << ":" << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  for (int x, t = 1;; t++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << t << ": " << x << endl;
  }

  return 0;
}


#include <cmath>
#include <stdio.h>
// using namespace std;
// scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
// printf("Yes\\n");
int main() {
  int a;
  int i = 1;
  while (1) {
    scanf("%d", &a);
    if (a != 0) {
      printf("Case %d: %d\\n", i, a);
      i = i + 1;
    }
  }

  return 0;
}

#include <cmath>
#include <stdio.h>
// using namespace std;
// scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
// printf("Yes\\n");
int main() {
  int a;
  int i = 1;
  while (1) {

    scanf("%d", &a);
    if (a == 0)
      break;
    if (a != 0) {
      printf("Case %d: %d\\n", i, a);
      i = i + 1;
    }
  }

  return 0;
}


#include <stdio.h>

int main(void) {
  int i = 0, x;
  while (1) {
    ++i;
    scanf("%x", &x);
    printf("Case %d: %d\\n", i, x);
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  static int i = 0;
  int n;

  while (1) {
    scanf("%d", &n);
    if (n == 0) {
      break;
    } else {
      i++;
      printf("Case %d: %d\\n", i, n);
    }
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a;
  cin >> a;
  for (int i = 1;; ++i) {
    if (a = 0)
      break;
    cout << "Case " << i << ": " << a << endl;
  }
}

#include <iostream>
using namespace std;

int main() {
  for (int x, t = 1;; ++t) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << t << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a;
  cin >> a;
  for (int i = 1;; ++i) {
    if (a == 0)
      break;
    cout << "Case " << i << ": " << a;
  }
}

#include <iostream>
using namespace std;

int main() {
  for (int a, i = 1;; ++i) {
    cin >> a;
    if (a == 0)
      break;
    cout << "Case " << i << ": " << a << endl;
  }
}


#include <iostream>
using namespace std;
int main() {
  int i = 1;
  int x;
  cin >> x;
  while (x != 0) {
    i++;
    cout << "Case"
         << " " << i << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int i = 0;
  int x;
  while (1) {
    cin >> x;
    if (x == 0)
      break;
    i++;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x[1000];
  x[0] = 1;
  for (int i = 1; x[i - 1] != 0; i++) {
    cin >> x[i];
    cout << "Case " << i << ": " << x[i] << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  for (int i = 1;; i++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}

Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19
Case 7: 0


#include <algorithm>
#include <iostream>
using namespace std;

int main() {
  int suuji;
  int i = 1;
  while (true) {
    cin >> suuji;
    if (suuji != 0) {
      cout << "Case " << i << ": " << suuji;
    }
    i++;
  }
  return 0;
}

#include <algorithm>
#include <iostream>
using namespace std;

int main() {
  int suuji;
  int i = 1;
  while (true) {
    cin >> suuji;
    if (suuji == 0)
      break;
    cout << "Case " << i << ": " << suuji << endl;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x[25565];
  x[0] = 1;
  int i = 1;
  while (x[i - 1] != 0) {
    cin >> x[i];
    i++;
  }
  i = 1;
  while (x[i] != 0) {
    cout << "Case " << i << ": " << x[i] << endl;
    i++;
  }
}


#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  cin >> x;
  while (true) {
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i = i + 1;
    if (x == 0)
      break;
  }
}

#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  cin >> x;
  while (true) {
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i = i + 1;
    cin >> x;
    if (x == 0)
      break;
  }
}


#include <iostream>
using namespace std;

int main() {

  int x, i;
  while (true) {
    i++;
    cin >> x;

    if (x = 0)
      break;

    cout << "Case " << i << ": " << x << "\\n";
  }
}

#include <iostream>
using namespace std;

int main() {

  int x, i;
  while (true) {
    i++;
    cin >> x;

    if (x == 0)
      break;

    cout << "Case " << i << ": " << x << "\\n";
  }
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int i, x;

  for (i = 1;; i++) {
    cin >> x;
    if (x = 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }

  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int i, x;

  for (i = 1;; i++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  cin >> x;
  while (true) {
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
}

#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  while (true) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
}


// Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
  vector<int> v(1);
  int i = 0;
  while (true) {
    cin >> v[i];
    if (v[i] == 0)
      break;
    i++;
  }
  for (int k = 0; k < i; k++) {
    cout << "Case " << k + 1 << ": " << v[k] << endl;
  }
  return 0;
}

// Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
  vector<int> v(10000);
  int i = 0;
  while (true) {
    cin >> v[i];
    if (v[i] == 0)
      break;
    i++;
  }
  for (int k = 0; k < i; k++) {
    cout << "Case " << k + 1 << ": " << v[k] << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int i, counter = 1;
  while (i >= 0 && i <= 10000) {
    cin >> i;
    cout << "Case"
         << " " << counter << ": "
         << " " << i;
    counter++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {

  int i, counter = 1;

  while (true) {
    cin >> i;
    if (i == 0) {
      break;
    }
    cout << "Case " << counter << ": " << i << endl;
    counter++;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int i, n;
  int A[10000];
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    A[i] = n;
    i++;
  }
  for (n = 0; n < i + 1; n++) {
    cout << "Case " << n + 1 << ": " << A[i] << endl;
  }
}

#include <iostream>
using namespace std;

int main() {
  int i, n;
  i = 1;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << endl;
    i++;
  }
}


#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  for (cin >> x; x > 0; i = i + 1) {
    cout << "case " << i << ": " << x << endl;
  }
}

#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  cin >> x;
  while (x > 0) {
    cout << "Case " << i << ": " << x << endl;
    i++;
    cin >> x;
  }
}


#include <stdio.h>

int main() {

  int i = 0, a[10000000], j;

  while (1) {
    scanf("%d", &a[i]);
    if (a[i] == 0) {
      break;
    }
    i++;
  }

  for (j = 0; j < i; j++) {
    printf("Case %d; %d\\n", j, a[j]);
  }

  return 0;
}

#include <stdio.h>

int main() {

  int i = 0, a[10000], j;

  while (1) {
    scanf("%d", &a[i]);
    if (a[i] == 0) {
      break;
    }
    printf("Case %d: %d\\n", i + 1, a[i]);
    i++;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, i;
  i = 0;
  while (true) {
    i = i + 1;
    cin >> x;
    cout << "Case"
         << " " << i << ": " << x << endl;
  }
}

#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  while (true) {
    cin >> x;
    if (x == 0) {
      break;
    } else {
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
      i++;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {

  int i, n;
  cin >> n;
  while (1) {
    cout << "Case i :"
         << " "
         << "n" << endl;
    if (n == 0)
      break;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  // Your code here!int i,n;
  int i, n;
  i = 1;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << endl;
    i++;
  }
  return 0;
}


#include <stdio.h>
int main() {
  int i;
  scanf("%d", &i);
  while (i != 0) {
    printf("Case i: %d\\n", i);
  }
  return 0;
}

#include <stdio.h>
int main() {
  int i, a;
  a = 0;
  scanf("%d", &i);
  while (i != 0) {
    a = a + 1;
    printf("Case %d: %d\\n", a, i);
    scanf("%d", &i);
  }
  return 0;
}


#include <cstdio>
int main() {
  int x;
  int i = 1;
  while (1) {
    scanf("%d", &x);
    if (x = 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
  return 0;
}

#include <cstdio>
int main() {
  int x;
  int i = 1;
  while (1) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x;
  cin >> x;
  int i = 1;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int x;
  cin >> x;
  int i = 1;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    cin >> x;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int i = 1, j, x[100];
  x[0] = -1;

  while (x[i - 1] != 0) {
    cin >> x[i];
    i = i + 1;
  }

  i = 1;
  while (x[i] != 0) {
    cout << "Case" << i << ": " << x[i] << endl;
    i = i + 1;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int i = 1, j = 1, x[100000];
  x[0] = -1;

  while (x[i - 1] != 0) {
    cin >> x[i];
    i = i + 1;
  }

  while (x[j] != 0) {
    cout << "Case " << j << ": " << x[j] << endl;
    j = j + 1;
  }

  return 0;
}

Case1: 3
Case2: 5
Case3: 11
Case4: 7
Case5: 8
Case6: 19


#include <iostream>
using namespace std;

int main() {
  int x[10];

  for (int i = 1; i < 11; i++) {
    cin >> x[i];
    if (x[i] == 0)
      break;
    cout << "Case " << i << ": " << x[i] << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x[10000];

  for (int i = 0; i < 10000; i++) {
    cin >> x[i];
    if (x == 0)
      break;
    cout << "Case " << i + 1 << ": " << x[i] << endl;
  }

  return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  int x = 0;
  while (1) {
    cin >> a;
    x = x + 1;
    if (a > 0) {
      cout << "Case " << x << ": " << a << endl;
    }
  }
}

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  int x = 0;
  while (1) {
    cin >> a;
    x = x + 1;
    if (a > 0) {
      cout << "Case " << x << ": " << a << endl;
    }
    if (a == 0) {
      break;
    }
  }
}


#include <iostream>
using namespace std;
int main() {
  int a;
  while (true) {
    cin >> a;
    if (a = 0)
      break;
    else if (a != 0)
      cout << a << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b = 1;
  while (true) {
    cin >> a;
    if (a == 0)
      break;
    else if (a != 0)
      cout << "Case " << b << ": " << a << endl;
    b++;
  }
  return 0;
}


#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
  vector<int> x(1000);
  int i = 0;
  while (1) {
    int flag = 1;
    cin >> x[i];
    if (x[i] == 0) {
      break;
    }
    i++;
  }
  for (int t = 0; t < i; t++) {
    cout << "Case " << t + 1 << ": " << x[t] << endl;
  }
  return 0;
}

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
  vector<int> x(10000);
  int i = 0;
  while (1) {
    int flag = 1;
    cin >> x[i];
    if (x[i] == 0) {
      break;
    }
    i++;
  }
  for (int t = 0; t < i; t++) {
    cout << "Case " << t + 1 << ": " << x[t] << endl;
  }
  return 0;
}


#include <iostream>
int main() {
  int x;
  int i;
  while (true) {
    std::cin >> x;
    if (x == 0)
      break;
    for (i = 1;; i++) {
    }
    std::cout << "Case" << i << ":" << x << std::endl;
  }
}

#include <iostream>
int main() {
  int x;
  int i;
  i = 1;
  while (true) {
    std::cin >> x;
    if (x == 0)
      break;
    std::cout << "Case " << i << ": " << x << std::endl;
    i++;
  }
}


#include <iostream>
using namespace std;

int main() {
  int i, x;
  i = 1;

  while (x = !0) {
    cin >> x;
    cout << "Cace " << i << ": " << x << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int i, x;
  i = 1;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i++;
  }

  return 0;
}


#include <iostream>
using namespace std;

//---- Print Test Cases
int main() {
  int i;
  while (true) {
    cin >> i;
    cout << "case:" << i << endl;
  }
}

#include <cstdio>
#include <iostream>
using namespace std;

//---- Print Test Cases
int main() {
  int x = 1, i = 1;
  while (true) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int data[30], i = 0;

  while (1) {
    cin >> data[i];
    if (data[i] == 0) {
      break;
    }
    cout << "Case " << i + 1 << ": " << data[i] << endl;
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int data, i = 1;

  while (1) {
    cin >> data;
    if (data == 0) {
      break;
    }
    cout << "Case " << i << ": " << data << endl;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int i = 1, x;
  cin >> x;
  while (1) {
    if (x == 0)
      break;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int i = 1, x;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i++;
  }
  return 0;
}


#include <cstdio>
#include <iostream>

int main() {
  int x[10000], count;
  for (int i; i < 10000; i++) {
    scanf("%d", &x[i]);
    count++;
    if (x[i] == 0) {
      break;
    }
  }
  for (int i = 1; i <= count; i++) {
    printf("Case %d: %d \\n", i, x[i - 1]);
  }
  return 0;
}

#include <cstdio>
#include <iostream>

int main() {
  int buf, count;
  count = 0;
  while (true) {
    scanf("%d", &buf);
    if (buf == 0)
      break;
    count++;
    printf("Case %d: %d\\n", count, buf);
  }
  return 0;
}


#include <cstdio>

int main() {
  int num;
  int cnt = 1;
  do {
    scanf("%d", num);
    printf("Case %d: %d, cnt, num");
    cnt++;
  } while (num != 0);
  return 0;
}

#include <iostream>

int main() {
  int num;
  int cnt = 1;
  while (1) {
    std::cin >> num;
    if (num == 0)
      break;
    std::cout << "Case " << cnt << ": " << num << std::endl;
    ;
    cnt++;
  }
  return 0;
}


#include <stdio.h>

int main() {
  int i = 1;
  int x;
  while (1) {
    if (scanf("%d", &x) == 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
}

#include <stdio.h>

int main() {
  int i = 1;
  int x;
  while (1) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int x, i = 0;
  cin >> x;
  while (true) {
    cout << "case" << i << ":" << x;
    if (x == 0)
      break;
    i++;
  }
}

#include <iostream>
using namespace std;

int main() {
  int i = 1;
  int n;

  while (true) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << endl;
    i++;
  }
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int x[100];
  int i = 0;

  while (true) {
    cin >> x[i];

    if (x[i] == 0) {
      break;
    }

    i++;
  }

  for (int j = 0; j < i; ++j) {
    cout << "Case " << 1 + j << ": " << x[j] << endl;
  }

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x[10000];
  int i = 0;

  while (true) {
    cin >> x[i];

    if (x[i] == 0) {
      break;
    }

    ++i;
  }

  for (int j = 0; j < i; ++j) {
    cout << "Case " << 1 + j << ": " << x[j] << endl;
  }

  return 0;
}


#include <iostream>

int main() {

  int x;

  for (int i = 1;; i++) {
    std::cin >> x;
    if (x = 0) {
      break;
    }
    std::cout << "Case " << i << ": " << x << std::endl;
  }
  return 0;
}

#include <iostream>

int main() {
  int x;
  for (int i = 1;; i++) {
    std::cin >> x;
    if (x == 0)
      break;
    std::cout << "Case " << i << ": " << x << std::endl;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  for (int i = 1;; ++i) {
    int x;
    cin >> x;
    cout << "Case " << i << ": " << x;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  for (int i = 1;; ++i) {
    int x;
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cou = 1;
  while (n != 0) {
    if (n == 0)
      break;
    cout << "Case"
         << "" << cou << ":"
         << "" << n << endl;
    cou++;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int cou = 1;
  int n;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case"
         << " " << cou << ":"
         << " " << n << endl;
    cou++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x;
  cin >> x;
  int i = 0;
  cin >> i;

  while (x <= 10000) {
    i += 1;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x;
  int i = 0;
  while (1) {
    cin >> x;
    i += 1;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
#include <vector>
using namespace std;

int main() {
  vector<int> x;
  int i;
  while (x.at(i) != 0) {
    cin >> x.at(i);
    i++;
  }
  for (int j = 0; j < i; j++) {
    cout << "Case " << j + 1 << ": " << x.at(j) << endl;
  }
}

#include <iostream>
#include <vector>
using namespace std;

int main() {
  int n;
  vector<int> x(10010);
  int i;
  for (i = 0; i < 10010; i++) {
    cin >> x.at(i);
  }
  for (int j = 0; x.at(j) != 0; j++) {
    cout << "Case " << j + 1 << ": " << x.at(j) << endl;
  }
}

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 18446744073325052495) >= this->size() (which is 0)


#include <iostream>
using namespace std;
int main() {
  int input[1000], i = 0;
  while (cin >> input[i]) {
    if (input[i] == 0)
      break;

    i++;
  }
  for (int j = 0; j < i; j++) {
    cout << "Case " << i << ": " << input[j] << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int input, i = 0;
  while (cin >> input) {
    if (input == 0)
      break;

    i++;
    cout << "Case " << i << ": " << input << endl;
  }
  return 0;
}

Case 6: 3
Case 6: 5
Case 6: 11
Case 6: 7
Case 6: 8
Case 6: 19


#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <math.h>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <string>

using namespace std;

int main(void) {
  int x[100];

  int co = 0;

  for (long i = 0; i < 10000; i++) {
    cin >> x[i];

    if (x[i] == 0) {
      break;
    }
    co += 1;
  }

  for (int i = 0; i < co; i++) {
    cout << "Case"
         << " " << i + 1 << ':' << " " << x[i] << endl;
  }
}

#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <math.h>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <string>

using namespace std;

int main(void) {
  long x[10000];

  long co = 0;

  for (long i = 0; i < 10000; i++) {
    cin >> x[i];

    if (x[i] == 0) {
      break;
    }
    co += 1;
  }

  for (long i = 0; i < co; i++) {
    cout << "Case"
         << " " << i + 1 << ':' << " " << x[i] << endl;
  }
}


#include <iostream>
using namespace std;
int main() {
  for (int count = 1;; ++count) {
    int input;
    cin >> input;
    cout << "Case " << count << ":"
         << " " << input << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  for (int count = 1;; ++count) {
    int input;
    cin >> input;
    if (input == 0) {
      break;
    }
    cout << "Case " << count << ":"
         << " " << input << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {

  int a = 1, b;

  while (true) {

    cin >> b;

    if (b = 0)
      break;

    cout << "Case " << a << ": " << b << endl;

    a++;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {

  int a = 1, b;

  while (true) {

    cin >> b;

    if (b == 0)
      break;

    cout << "Case " << a << ": " << b << endl;

    a++;
  }

  return 0;
}


#include <cstdio>
using namespace std;
int main() {
  int x;
  int i = 1;
  while (1) {
    scanf("%d", &x);
    if (x = 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
  return 0;
}

#include <cstdio>

int main() {
  int x;
  int n = 1;
  while (1) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", n, x);
    n++;
  }

  return 0;
}


#include <cstdio>
#include <queue>
#include <stdio.h>
using namespace std;
int main(void) {
  queue<int> que1, que2;
  int x1, y2, tmp, count;
  tmp = count = 0;
  do {
    scanf("%d", &x1);
    scanf("%d", &y2);
    if (x1 == 0)
      if (y2 == 0)
        break;

    if (x1 < y2) {
      tmp = x1;
      x1 = y2;
      y2 = tmp;
    }
    que1.push(x1);
    que2.push(y2);

    count++;
  } while (x1 != 0 || y2 != 0);

  for (int i = 0; i < count; i++) {
    printf("%d %d\\n", que1.front(), que2.front());
    que1.pop();
    que2.pop();
  }
}

#include <stdio.h>
int main() {
  int x, i;
  i = 1;
  while (1) {
    scanf("%d", &x);
    if (x == 0)
      break;
    printf("Case %d: %d\\n", i, x);
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, y;
  cin >> x;
  y = 0;
  while (1) {
    y++;
    if (x == 0) {
      break;
    }
    cout << "Case " << y << ": " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int i = 1;
  int n;

  while (true) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << endl;
    i++;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int y = 0;
  int x;
  cin >> x;
  while (1) {
    y++;
    if (x == 0) {
      break;
    }
    cout << "Case " << y << ": " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int i = 1;
  int n;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << endl;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, y = 1;
  cin >> x;
  while (1) {
    if (x == 0) {
      break;
    }
    cout << "Case " << y << ": " << x << endl;
    y++;
  }
}

#include <iostream>
using namespace std;
int main() {
  int a, b = 1;
  while (1) {
    cin >> a;
    if (a == 0)
      break;
    cout << "Case " << b << ": " << a << endl;
    b++;
  }
}


#include <iostream>
using namespace std;
int main() {
  int a, b = 1;
  cin >> a;
  while (1) {
    if (a == 0)
      break;
    cout << "Case " << b << ": " << a << endl;
    b++;
  }
}

#include <algorithm>
#include <iostream>
using namespace std;
int main() {
  int a, b = 0;
  while (1) {
    cin >> a;
    if (a == 0)
      break;
    b++;
    cout << "Case " << b << ": " << a << endl;
  }
}


#include <iostream>
using namespace std;
int main() {
  int a, b = 1;
  while (1) {
    cin >> a;
    cout << "Case " << b << ": " << a << endl;
    b++;
  }
}

#include <iostream>
using namespace std;
int main() {
  int a;
  int b = 1;
  while (1) {
    cin >> a;
    if (a == 0)
      break;
    cout << "Case " << b << ": " << a << endl;
    b++;
  }
}


#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int a;
  for (int i = 1;; i++) {
    cin >> a;
    if (a != 0) {
      cout << "case " << i << ": " << a << endl;
    }
  }
  return 0;
}

#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int a, i = 1;
  while (1) {
    cin >> a;
    if (a == 0)
      break;
    cout << "Case " << i << ": " << a << endl;
    i++;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

signed main() {
  int a;
  for (int b = 1; scanf("%d", &a); b++) {
    printf("Case %d: %d\\n", b, a);
  }
}

#include <bits/stdc++.h>
using namespace std;

signed main() {
  int a;
  for (int b = 1; scanf("%d", &a), a; b++) {
    printf("Case %d: %d\\n", b, a);
  }
}


#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  cin >> x;
  while (x != 0) {
    cout << "Case" << i << ":" << x << "\\n";
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int n;
  for (int i = 1; i >= 0; i++) {
    cin >> n;
    if (n == 0)
      break;
    cout << "Case " << i << ": " << n << "\\n";
  }
  return 0;
}


#include <cstdio>

int main() {
  int b, i;
  i = 0;
  scanf("%d", b);
  while (1) {
    i += 1;
    printf("Case %d:%d\\n", i, b);
  }
  return 0;
}

#include <cstdio>

int main() {
  int b, i;
  i = 0;
  while (1) {
    scanf("%d", &b);
    if (b == 0)
      break;
    i += 1;
    printf("Case %d: %d\\n", i, b);
  }
  return 0;
}


#include <cstdio>
int main() {
  for (int i = 1;; i++) {
    int x;
    scanf("%d", &x);
    printf("Case %d: %d\\n", i, x);
  };
  return 0;
}

#include <cstdio>
int main() {
  for (int i = 1;; i++) {
    int x;
    scanf("%d", &x);
    if (x == 0) {
      break;
    }
    printf("Case %d: %d\\n", i, x);
  };
  return 0;
}


#include <stdio.h>
int main() {
  int i, x;
  for (i = 1;; i++) {
    scanf("%d", &x);
    if (i == 0) {
      return 0;
    } else {
      printf("Case i:%d\\n", i, x);
    }
  }
}

#include <stdio.h>
int main() {
  int i, x;
  for (i = 1;; i++) {
    scanf("%d", &x);
    if (x == 0) {
      return 0;
    } else {
      printf("Case %d: %d\\n", i, x);
    }
  }
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int count = 0;
  int a[1000];
  while (true) {
    cin >> a[count];
    if (a[count] == 0) {
      break;
    }
    count++;
  }
  for (int i = 0; i < count; i++) {
    cout << "Case " << i << ": " << a[i] << endl;
  }
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int count = 1;
  int a[10000];
  while (true) {
    cin >> a[count];
    if (a[count] == 0) {
      break;
    }
    count++;
  }
  for (int i = 1; i < count; i++) {
    cout << "Case " << i << ": " << a[i] << endl;
  }
  return 0;
}

Case 0: 3
Case 1: 5
Case 2: 11
Case 3: 7
Case 4: 8
Case 5: 19


#include <iostream>
using namespace std;

int main() {
  int i, x;
  while (1) {
    for (i == 1;; i++) {
      cin >> x;
      if (x = 0) {
        break;
      } else {
        cout << "Case " << i << ": " << x;
      }
    }
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, i;
  i = 0;
  while (1) {
    cin >> a;
    if (a == 0) {
      break;
    } else {
      i += 1;
      cout << "Case " << i << ": " << a << "\\n";
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x, i = 1;
  while (1) {
    cin >> x;
    if (x != 0) {
      cout << "case"
           << " " << i << ": " << x << endl;
      i++;
    }
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int x, i = 1;
  while (1) {
    cin >> x;
    if (x != 0) {
      cout << "Case"
           << " " << i << ": " << x << endl;
      i++;
    } else {
      return 0;
    }
  }
}


#include <iostream>
using namespace std;
int main() {
  int x, i;
  cin >> x;
  for (x >= 0; x <= 10000;) {
    if (x == 0)
      break;
    cout << "Case " << i << " " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x, i;
  i = 1;
  while (x >= 0, x <= 10000) {
    cin >> x;
    if (x == 0) {
      break;
    }
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {

  int x;

  while (1) {
    cin >> x;

    if (x != 0)
      cout << x << endl;
    else
      return 1;
  }

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {

  int x, count = 1;

  while (1) {
    cin >> x;

    if (x != 0)
      cout << "Case " << count << ": " << x << endl;
    else
      break;

    count++;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  int count = 1;
  cin >> x;
  while (x != 0) {
    cout << "Case " << count << ":" << x << endl;
    count++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  int count = 1;
  cin >> x;
  while (x != 0) {
    cout << "Case " << count << ": " << x << endl;
    cin >> x;
    count++;
  }
  return 0;
}


#include <stdio.h>
int main() {
  int num[10000], n;
  n = 0;
  while (1) {
    scanf("%d", &num[n]);
    if (num[n] == 0)
      break;
    n = n + 1;
  }
  while (num[n] != 0, n++) {
    printf("Case %d: %d\\n", n, num[n]);
  }
  return 0;
}

#include <stdio.h>
int main() {
  int num[10000], n;
  n = 0;
  while (1) {
    scanf("%d", &num[n]);
    if (num[n] == 0)
      break;
    n = n + 1;
  }
  n = 0;
  while (num[n] != 0) {
    printf("Case %d: %d\\n", n + 1, num[n]);
    n = n + 1;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x;
  int i = 1;
  cin >> x;

  while (1) {
    if (x == 0)
      break;
    else
      cout << "Case" << i << ":"
           << " " << x << endl;
    i += 1;
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x;
  int i = 1;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    else
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
    i += 1;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int i = 1;
  while (true) {
    if (i == 0) {
      break;
    }

    cout << i << endl;
  }

  cout << i << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x, c = 0;
  while (true) {
    cin >> x;

    if (x == 0) {
      break;
    }
    c = c + 1;
    cout << "Case " << c << ": " << x << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x;
  cin >> x;
  int i = 0;
  while (x != 0) {

    if (x == 0)
      break;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x = 1;
  int i = 1;

  for (i = 1; x != 0; i++) {

    cin >> x;
    if (x == 0)
      break;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
  }
  return 0;
}


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void) {
  int x[100], i = 0, j;

  while (1) {
    scanf("%d", &x[i]);
    if (x[i] == 0) {
      break;
    }
    i++;
  }

  for (j = 1; j < i + 1; j++) {
    printf("Case %d: %d\\n", j, x[j - 1]);
  }

  return 0;
}

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void) {
  int x[10000], i = 0, j;

  while (1) {
    scanf("%d", &x[i]);
    if (x[i] == 0) {
      break;
    }
    i++;
  }

  for (j = 1; j < i + 1; j++) {
    printf("Case %d: %d\\n", j, x[j - 1]);
  }

  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c, d, i = 0;
  while (1) {
    scanf("%d", &a);
    i++;
    printf("Case %d: %d\\n", i, a);
  }
}

#include <stdio.h>
int main() {
  int a, b, c, d, i = 0;
  while (1) {
    scanf("%d", &a);
    i++;
    if (a == 0)
      break;
    printf("Case %d: %d\\n", i, a);
  }
}


#include <iostream>
int main() {
  int i, x;
  for (i = 1;; i++) {
    std::cin >> x;
    std::cout << "Case " << i << ": " << x << std::endl;
  }
  return 0;
}

#include <iostream>
int main() {
  int i, x;
  for (i = 1;; i++) {
    std::cin >> x;
    if (x)
      std::cout << "Case " << i << ": " << x << std::endl;
    else
      return 0;
  }
}


// Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
  vector<int> v(5000);
  int i = 0;
  while (true) {
    cin >> v[i];
    if (v[i] == 0)
      break;
    i++;
  }
  for (int k = 0; k < i; k++) {
    cout << "Case " << k + 1 << ": " << v[k] << endl;
  }
  return 0;
}

// Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
  vector<int> v(100000);
  int i = 0;
  while (true) {
    cin >> v[i];
    if (v[i] == 0)
      break;
    i++;
  }
  for (int k = 0; k < i; k++) {
    cout << "Case " << k + 1 << ": " << v[k] << endl;
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int D[100], C = 0;

  while (true) {
    cin >> D[C];

    if (D[C] == 0) {
      goto Exit;
    }

    C++;
  }

Exit:;

  for (int i = 0; i < C; i++) {
    cout << "Case " << C << ": " << D[C] << endl;
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int D[10000], C = 0;

  while (true) {
    cin >> D[C];

    if (D[C] == 0) {
      goto Exit;
    }

    C++;
  }

Exit:;

  for (int i = 0; i < C; i++) {
    cout << "Case " << i + 1 << ": " << D[i] << endl;
  }

  return 0;
}

Case 6: 0
Case 6: 0
Case 6: 0
Case 6: 0
Case 6: 0
Case 6: 0


#include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define INF 100000000

#define MAX_N 10000
#define MAX_M 100

typedef long long int ll;
using namespace std;

int main() {

  int x;
  int i = 0;
  while (true) {

    scanf("%d", &x);
    if (x != 0) {
      i++;
      printf("Case %s: %d\\n", i, x);
    } else
      break;
  }

  return 0;
}

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define INF 100000000

#define MAX_N 10000
#define MAX_M 100

typedef long long int ll;
using namespace std;

int main() {

  int x;
  int i = 0;
  while (true) {

    scanf("%d", &x);
    if (x != 0) {
      i++;
      printf("Case %d: %d\\n", i, x);
    } else
      break;
  }

  return 0;
}


#include <iostream>
#include <vector>
using namespace std;

int main() {
  int i;
  vector<int> v;

  i = 0;

  while (1) {
    cin >> v[i];

    if (v[i] == 0) {
      for (int j = 0; j < i; j++) {
        cout << "Case " << j + 1 << ": " << v[j] << endl;
        break;
      }
    }

    i++;
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  long box[10001];
  int i = 0;

  while (1) {
    cin >> box[i];
    if (box[i] == 0) {
      break;
    }
    i++;
  }

  for (int j = 0; j < i; j++) {
    cout << "Case"
         << " " << j + 1 << ":"
         << " " << box[j] << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int buffer, i = 1;
  cin >> buffer;
  while (buffer != 0) {
    cout << "Case " << i << ": " << buffer << endl;
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int buffer, i = 1;
  cin >> buffer;
  while (buffer != 0) {
    cout << "Case " << i << ": " << buffer << endl;
    cin >> buffer;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x = 0;
  cin >> x;
  for (int i = 0; i >= 0; i++) {
    if (x != 0) {
      cout << "Case"
           << " " << i << "; " << x << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x = 0;
  int i = 0;
  while (1) {
    cin >> x;
    if (x == 0) {
      break;
    }
    i++;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;

  cin >> x;
  while (x != 0) {
    cout << x << "\\n";
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x, count;

  while (1) {
    cin >> x;
    if (x == 0) {
      break;
    }
    count++;
    cout << "Case " << count << ": " << x << "\\n";
  }

  return 0;
}


#include <iostream>
using namespace std;

int main(void) {
  int *num = new int[1];
  int *t = new int[1];

  int count = 0;
  while (true) {
    cin >> num[count];
    if (num[count] == 0)
      break;
    count++;
    t = new int[count];
    for (int loop = 0; loop < count; loop++)
      t[loop] = num[loop];
    num = new int[count + 1];
    for (int loop = 0; loop < count; loop++)
      num[loop] = t[loop];
  }
  for (int loop = 0; loop < count; loop++)
    cout << "Case " << loop + 1 << ": " << num[loop] << endl;

  delete[] num;
  num = 0;

  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  int *num = new int[1];
  int *t = new int[1];

  int count = 0;
  while (true) {
    cin >> num[count];
    if (num[count] == 0)
      break;
    count++;
    delete[] t;
    t = new int[count];
    for (int loop = 0; loop < count; loop++)
      t[loop] = num[loop];
    delete[] num;
    num = new int[count + 1];
    for (int loop = 0; loop < count; loop++)
      num[loop] = t[loop];
  }
  for (int loop = 0; loop < count; loop++)
    cout << "Case " << loop + 1 << ": " << num[loop] << endl;

  delete[] num;
  delete[] t;
  num = t = 0;

  return 0;
}


#include <iostream>
using namespace std;
int main(void) {
  // Your code here!
  int x;

  while (1) {
    cin >> x;
    cout << "Case " << x << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;
int main(void) {
  // Your code here!
  int x;

  for (int i = 1;; i++) {
    cin >> x;
    if (x == 0) {
      break;
    }

    cout << "Case " << i << ": " << x << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main(void) {

  int i = 1, n, m;
  int A[1000];

  while (1) {
    cin >> n;
    if (n == 0)
      break;
    A[i] = n;
    i++;
  }

  m = i - 1;

  for (i = 1; i <= m; i++)
    cout << "Case " << i << ": " << A[i] << endl;

  return 0;
}

#include <iostream>
using namespace std;

int main(void) {

  int n;
  int count = 1;

  while (1) {
    cin >> n;
    if (n == 0)
      break;

    cout << "Case " << count << ": " << n << endl;
    count++;
  }
  return 0;
}


#include <stdio.h>
int main() {
  int x, i;
  x = 0;
  for (i = 1; 0 <= x <= 1000; i++) {
    scanf("%d", &x);
    printf("Case i: %d\\n", x);
  }
}

#include <stdio.h>
#include <stdlib.h>
int main() {
  int i, x;
  x = 1;
  srand(x);
  for (i = 1; i <= 10000; i++) {
    scanf("%d", &x);
    if (x == 0) {
      break;
    }
    printf("Case %d: %d\\n", i, x);
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int i = 0, x[100];
  do {
    cin >> x[i];
    i++;
  } while (x[i - 1] != 0);
  for (i = 0; x[i] != 0; i++) {
    cout << "Case " << i + 1 << ": " << x[i] << endl;
  }
}

#include <iostream>
using namespace std;
int main() {
  int i, x;
  for (i = 1;; i++) {
    cin >> x;
    if (x != 0) {
      cout << "Case " << i << ": " << x << endl;
    } else {
      break;
    }
  }
  return 0;
}


#include <stdio.h>
int main() {
  int i, D;
  for (i = 0; i < 10000; i++) {
    scanf("%d", &D);
    if (D == 0)
      break;
    printf("Case %d: %d\\n", i + 1, D);
  }
  return 0;
}


#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
  int x;
  int i = 0;
  while ((scanf("%d", &x)) != 0) {
    i++;
    printf("Case %d: %d\\n", i, x);
  }
  return 0;
}

#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
  int x;
  int i = 0;
  while (cin >> x) {
    if (x == 0)
      break;
    i++;
    printf("Case %d: %d\\n", i, x);
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  for (int x, y = 1;; y++) {
    cin >> x;
    if (x = 0)
      break;
    cout << "Case " << y << ": " << x << endl;
  }
}

#include <iostream>
using namespace std;

int main() {
  for (int x, y = 1;; y++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << y << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
#include <vector>
using namespace std;

int main() {
  int a[10000];
  int total = 0;
  for (int i = 0; i <= 10000; i++) {
    int tmp;
    cin >> tmp;
    if (tmp < 0 || tmp >= 10000)
      return -1;
    if (tmp == 0) {
      break;
    }
    a[i] = tmp;
    total++;
  }

  for (int j = 0; j <= total - 1; j++)
    cout << "Case " << j + 1 << ": " << a[j] << endl;

  return 0;
}

#include <iostream>
#include <vector>
using namespace std;

int main() {
  int a[10000];
  int total = 0;
  for (int i = 0; i <= 10000; i++) {
    int tmp;
    cin >> tmp;
    //        if(tmp < 0 || tmp >= 10000) return -1;
    if (tmp == 0) {
      break;
    }
    a[i] = tmp;
    total++;
  }

  for (int j = 0; j <= total - 1; j++)
    cout << "Case " << j + 1 << ": " << a[j] << endl;

  return 0;
}


#include <iostream>
using namespace std;

int main(void) {
  int x, i = 0;

  while (1) {
    cin >> x;
    if (x != 0) {
      cout << "Case " << ++i << ": " << x << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  int x, i = 0;

  while (1) {
    cin >> x;
    if (x != 0) {
      cout << "Case " << ++i << ": " << x << endl;
    } else {
      break;
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {

  for (int i = 1;; i++) {
    int x;
    cin >> x;

    cout << "Case " << i << ": " << x << endl;
  }
}

#include <iostream>

using namespace std;

int main() {

  for (int i = 1;; i++) {
    int x;
    cin >> x;
    if (x == 0)
      break;

    cout << "Case " << i << ": " << x << endl;
  }
}


#include <stdio.h>

int main(void) {
  int i;
  int data[20];
  data[0] = 1;

  for (i = 1; data[i - 1] > 0; i++)
    scanf("%d", &data[i]);

  for (i = 1; data[i] > 0; i++)
    printf("Case %d: %d\\n", i, data[i]);

  return (0);
}

#include <stdio.h>

int main(void) {
  int i = 1;
  int x;

  do {
    scanf("%d", &x);

    if (x == 0)
      break;
    else
      printf("Case %d: %d\\n", i, x);

    i++;
  } while (x > 0);

  return (0);
}


#include <iostream>
using namespace std;
int main() {
  while (true) {
    for (int i = 1; i; i++) {
      int a;
      cin >> a;
      if (a == 0) {
        break;
      }
      cout << "Case " << i << ": " << a << endl;
    }
  }
}

#include <iostream>
using namespace std;
int main() {
  for (int i = 1; i; i++) {
    int a;
    cin >> a;
    if (a == 0) {
      break;
    }
    cout << "Case " << i << ": " << a << endl;
  }
}


#include <fstream>
#include <iostream>
using namespace std;

int main() {

  int val[7000000];

  for (int i = 0; i < 7000000; i++) {
    cin >> val[i];
    if (val[i] == 0)
      goto end;
  }
end:

  for (int i = 0; i < 7000000; i++) {
    cout << "Case " << i << ": " << val[i] << endl;
    if (val[i] == 0) {
      goto rend;
    }
  }
rend:

  return 0;
}

#include <fstream>
#include <iostream>
using namespace std;

int main() {

  int val;
  int i = 1;

  cin >> val;

  while (val) {
    cout << "Case " << i << ": " << val << endl;
    cin >> val;
    i++;
  }

  return 0;
}


#include <iostream>

#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

int main(void) {
  int x = 0;
  int i = 1;
  while (1) {
    CI x;
    CO "case " << i << ":" << x E++ i;
  }
}

#include <iostream>

#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

int main(void) {
  int x = 0;
  int i = 1;
  while (1) {
    CI x;
    if (x == 0) {
      return 0;
    }
    CO "Case " << i << ": " << x E++ i;
  }
}


#include <iostream>
using namespace std;
int main() {
  int x;
  int i = 1;

  while (1) {
    cin >> x;
    if (x = 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
}

#include <iostream>
using namespace std;
int main() {
  int x;
  int i = 1;

  while (1) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
}


#include <iostream>
using namespace std;

int main() {
  int x[10000];
  for (int i = 0; i < 10001; i = i + 1) {
    cin >> x[i];
  }

  for (int i = 0; i < 10001; i = i + 1) {
    if (x[i] = 0) {
      i = 10001;
      break;
    } else {
      cout << "Case " << i << ": " << x[i] << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x[10000];
  for (int i = 1; i < 10001; i = i + 1) {
    cin >> x[i];
  }

  for (int i = 1; i < 10001; i = i + 1) {
    if (x[i] == 0) {
      break;
    } else {
      cout << "Case " << i << ": " << x[i] << endl;
    }
  }
  return 0;
}


Case 1: 3Case 2: 5Case 3: 11Case 4: 7Case 5: 8Case 6: 19


#include <cstdio>
using namespace std;

int main() {
  int x, i = 0;

  while (1) {

    scanf("%d", &x);

    if (x = 0)
      break;

    i++;
    printf("Case %d: %d", i, x);
  }
}

#include <cstdio>
using namespace std;

int main() {
  int x, i = 0;

  while (1) {

    scanf("%d", &x);

    if (x == 0)
      break;

    i++;
    printf("Case %d: %d\\n", i, x);
  }
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int i = 0, Case[1000];
  Case[0] = 1;
  while (1) {
    cin >> Case[i];
    if (Case[i] == 0) {
      break;
    }
    i++;
  }
  for (int j = 0; j <= i - 1; j++) {
    cout << "Case " << j + 1 << ": " << Case[j] << endl;
  }
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int i = 0, Case[10000];
  Case[0] = 1;
  while (1) {
    cin >> Case[i];
    if (Case[i] == 0) {
      break;
    }
    i++;
  }
  for (int j = 0; j <= i - 1; j++) {
    cout << "Case " << j + 1 << ": " << Case[j] << endl;
  }
}


#include <iostream>

using namespace std;
int main() {
  int i = 0;
  int x;
  while (true) {
    cin >> x;
    if (x != 0) {
      i++;
      cout << "case " << i << " : " << x << endl;
    }
  }
  return 0;
}

#include <iostream>

using namespace std;
int main() {

  for (int i = 1;; i++) {
    int x;
    cin >> x;
    if (x == 0)
      break;
    else
      cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


// ConsoleApplication3.cpp : コンソール アプリケーションのエントリ
// ポイントを定義します。
//

// #include "stdafx.h"
#include <iostream>
using namespace std;
int main() {
  int a, b;
  b = 1;
  while (1) {
    cin >> a;
    cout << "Case " << b << ": " << a << endl;
    b++;
  }
  return 0;
}

// ConsoleApplication3.cpp : コンソール アプリケーションのエントリ
// ポイントを定義します。
//

// #include "stdafx.h"
#include <iostream>
using namespace std;
int main() {
  int a, b;
  b = 1;
  while (1) {
    cin >> a;
    if (a == 0) {
      break;
    } else {
      cout << "Case " << b << ": " << a << endl;
      b++;
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x;
  int i = 0;

  cin >> x;

  while (x != 0) {
    cout << "Case " << (++i) << ": " << x << endl;
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int i = 0;
  int x;

  cin >> x;

  while (x != 0) {
    cout << "Case " << ++i << ": " << x << endl;
    cin >> x;
  }

  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x, i;
  cin >> x;
  while (x != 0) {
    cout << "Case " << i + 1 << ": " << x << endl;
    i++;
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int x, i;
  while (1) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i + 1 << ": " << x << endl;
    i++;
  }
}


#include <algorithm>
#include <cstdio>

using namespace std;

int main() {
  int N[100];
  int i = 0;
  while (true) {
    scanf("%d", &N[i]);
    if (N[i] == 0)
      break;
    i++;
  }

  for (int j = 0; j < i; j++) {
    printf("Case %d: %d\\n", j + 1, N[j]);
  }
  return 0;
}

#include <algorithm>
#include <cstdio>

using namespace std;

int main() {
  int N[65535];
  int i = 0;
  while (true) {
    scanf("%d", &N[i]);
    if (N[i] == 0)
      break;
    i++;
  }

  for (int j = 0; j < i; j++) {
    printf("Case %d: %d\\n", j + 1, N[j]);
  }
  return 0;
}


#include <stdio.h>
using namespace std;

int x = 1;
int i = 0;
int main() {
  while (1) {
    i++;
    scanf("%d", &x);
    printf("Case %d: %d", i, x);
  }
  return 0;
}

#include <stdio.h>
using namespace std;

int x = 0;
int i = 0;
int main() {
  scanf("%d", &x);
  while (1) {
    if (x == 0) {
      break;
    }
    i++;
    printf("Case %d: %d\\n", i, x);
    scanf("%d", &x);
  }
  return 0;
}


#include <stdio.h>
int main() {
  int a[100], i, count = 0, j = 0;
  while (scanf("%d", &a[j]) != EOF) {
    count++;
    if (a[j] == 0) {
      for (i = 0; i < count - 1; i++)
        printf("Case %d: %d\\n", i + 1, a[i]);
      return 0;
    } else
      j++;
  }
  return 0;
}

#include <stdio.h>
int main() {
  int a, count = 1;
  while (scanf("%d", &a) != EOF) {
    if (a == 0)
      return 0;
    else
      printf("Case %d: %d\\n", count, a);
    count++;
  }
}


/*
 * taete.cpp
 *
 *  Created on: 2018/04/26
 *      Author: J01003
 */
#include <iostream>
using namespace std;

int main() {

  int s, t;
  s = 1;
  while (s > 0) {
    cin >> t;
    if (t = 0)
      break;
    cout << "Case"
         << " " << s << ": " << t << endl;
    s = s + 1;
  }

  return 0;
}

/*
 * taete.cpp
 *
 *  Created on: 2018/04/26
 *      Author: J01003
 */
#include <iostream>
using namespace std;

int main() {

  int s, t;
  s = 1;
  while (s > 0) {
    cin >> t;
    if (t == 0)
      break;
    cout << "Case"
         << " " << s << ": " << t << endl;
    s = s + 1;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, i;
  cin >> x;
  while (1) {
    cin >> i;
    if (x == 0) {
      break;
    } else {
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  while (1) {
    cin >> x;
    if (x == 0) {
      break;
    } else {
      cout << "Case"
           << " " << i << ":"
           << " " << x << endl;
      i++;
    }
  }
  return 0;
}


#include <cstdio>
int main() {
  int id, data;
  id = 1;
  while (true) {
    scanf("%d", data);
    if (data == 0)
      break;
    printf("Case %d: %d\\n", id, data);
    ++id;
  }
  return 0;
};

#include <cstdio>
int main() {
  int id, data;
  id = 1;
  while (true) {
    scanf("%d", &data);
    if (data == 0)
      break;
    printf("Case %d: %d\\n", id, data);
    ++id;
  }
  return 0;
};


#include <stdio.h>
int main() {
  int x;
  for (;;) {
    scanf("%d", x);
    printf("%d\\n", x);
    if (x == 0) {
      break;
    }
  }
}

#include <stdio.h>
int main() {
  int x;
  int i;
  for (i = 1;; i++) {
    scanf("%d", &x);
    if (x == 0) {
      break;
    }
    printf("Case %d: %d\\n", i, x);
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {

  int i = 1, x;

  while (i = 1) {

    cin >> x;

    cout << "Case " << i << " " << x << endl;

    if (i == 0)
      break;
  }

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {

  int i, x;

  for (i = 1; i < 100000; i++) {

    cin >> x;

    if (x == 0)
      break;

    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
  int x[1000], i = 0;
  while (1) {
    cin >> x[i];
    if (x[i] == 0)
      break;
    i++;
  }

  for (int j = 0; j < i - 1; j++) {
    printf("Case %d: %d\\n", j + 1, x[j]);
  }

  return 0;
}

#include <cstdio>

int main(void) {
  int x;

  for (int i = 1;; i++) {
    scanf("%d", &x);
    if (x == 0)
      break;

    printf("Case %d: %d\\n", i, x);
  }

  return 0;
}

Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8


#include <stdio.h>
int main() {
  int x[255], cnt = 0;
  while (1) {
    cnt++;
    scanf("%d", &x[cnt]);
    if (x[cnt] == 0)
      break;
  }
  cnt = 0;
  while (1) {
    cnt++;
    if (x[cnt] == 0)
      break;
    else
      printf("Case %d:%d\\n", cnt, x[cnt]);
  }
}

#include <stdio.h>
int main() {
  int x[25556], cnt = 0;
  while (1) {
    cnt++;
    scanf("%d", &x[cnt]);
    if (x[cnt] == 0)
      break;
  }
  cnt = 0;
  while (1) {
    cnt++;
    if (x[cnt] == 0)
      break;
    else
      printf("Case %d: %d\\n", cnt, x[cnt]);
  }
}

Case 1:3
Case 2:5
Case 3:11
Case 4:7
Case 5:8
Case 6:19


#include <iostream>
using namespace std;
int main() {

  int x, i, *k;
  i = 0;
  k = 0;
  while (i <= 10000 && i >= 0) {

    cin >> x;
    if (x[k] == 0) {
      break;
    } else {
      i++;
      k = k + 1;
      cout << "Case " << i << ": " << x << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {

  int x, i;
  i = 0;
  while (i <= 10000 && i >= 0) {

    cin >> x;
    if (x == 0) {
      break;
    } else {
      i++;
      cout << "Case " << i << ": " << x << endl;
    }
  }
  return 0;
}


#include <stdio.h>

int main(void) {
  int i, x;

  scanf("%d", x);
  for (i = 1; x != 0; i++) {
    printf("Case %d: %d\\n", i, x);
    scanf("%d", x);
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  int i, x;

  scanf("%d", &x);
  for (i = 1; x != 0; i++) {
    printf("Case %d: %d\\n", i, x);
    scanf("%d", &x);
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  int n = 1;
  int d[10000];
  cin >> x;

  while (x != 0) {
    d[n] = x;
    n++;
    cin >> x;
  }

  for (int i = 1; i < n; i++) {
    cout << "Case"
         << " " << i << ":"
         << " " << d[i] << "\\n";
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  for (int x, i = 1;; i++) {
    cin >> x;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  for (int x, i = 1;; i++) {
    cin >> x;
    if (x == 0)
      break;
    cout << "Case " << i << ": " << x << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x, i;
  while (1) {
    cin >> x;
    for (i = 1;; i++) {
      cout << "Case" << i << ": " << x << endl;
    }
    if (x == 0) {
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x, i = 1;
  while (true) {
    cin >> x;
    if (x == 0) {
      break;
    }
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int n[10000];
  int a;
  n[0] = 1;
  for (int i = 1; n[i - 1] != 0; i++) {
    cin >> n[i];
    a++;
  }
  for (int i = 1; a > 1; i++) {
    cout << "Case " << i << ": " << n[i] << endl;
    a--;
  }
}

#include <iostream>
using namespace std;
int main() {
  int n = 1;
  int a;
  int b[10000];
  while (cin >> a && a != 0) {
    b[n] = a;
    n++;
  }
  for (int i = 1; i < n; i++) {
    cout << "Case " << i << ": " << b[i] << endl;
  }
}


#include <algorithm>
#include <iostream>
using namespace std;

int main() {
  int x;
  int i = 1;
  cin >> x;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    i++;
  };
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int i = 1, x;
  cin >> x;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    i++;
    cin >> x;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {

  int x[1000], i = 0;
  do {
    cin >> x[i];
  } while (x[i++] != 0);

  int k = 0;
  while (k < i - 1) {
    cout << "Case " << k + 1 << ": " << x[k] << endl;
    k++;
  }
}

#include <iostream>
using namespace std;
int main() {

  int x[10000], i = 0;
  do {
    cin >> x[i];
  } while (x[i++] != 0);

  int k = 0;
  while (k < i - 1) {
    cout << "Case " << k + 1 << ": " << x[k] << endl;
    k++;
  }
}


#include <iostream>
using namespace std;

int x[100];
int main() {
  cin >> x[0];
  int i;
  while (x[i] != 0) {
    cin >> x[i + 1];
    ++i;
  }
  i = 0;
  while (x[i] != 0) {
    cout << "Case " << i + 1 << ": " << x[i] << endl;
    ++i;
  }
}

#include <iostream>
using namespace std;

int x;
int i = 1;
int main() {
  cin >> x;
  while (x != 0) {
    cout << "Case " << i << ": " << x << endl;
    ++i;
    cin >> x;
  }
}


#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  while (1) {
    cin >> x;
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i++;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x, i = 1;
  while (1) {
    cin >> x;
    if (x == 0) {
      break;
    }
    cout << "Case"
         << " " << i << ":"
         << " " << x << endl;
    i++;
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int n;
  int a[n];
  n = 10000;
  for (int i = 0; i < n; i++) {
    if (a[n] != 0) {
      cin >> a[i];
      cout << "Case"
           << " " << i + 1 << ":"
           << " " << a[i];
    } else
      return 0;
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int n;
  int a;
  n = 10000;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 0) {
      cout << "";
      return 0;
    } else {
      cout << "Case"
           << " " << i + 1 << ":"
           << " " << a << endl;
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x;
  for (int i = 1;; i = i + 1) {
    cin >> x;
    cout << "Case " << i << ":" << x << endl;
  }
}

#include <iostream>

using namespace std;

int main() {
  int x;
  for (int i = 1; i < 10001; i = i + 1) {
    cin >> x;
    cout << "Case " << i << ": " << x << endl;
  }
}


#include <iostream>
using namespace std;

int main() {
  int x[10000];

  int n = 0;
  while (true) {
    if (n > 9999)
      return -1;

    cin >> x[n];

    if (x[n] == 0)
      break;

    ++n;
  }

  for (int i = 0; i < n; ++i) {
    cout << "Case " << i + 1 << ": " << x[i] << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x[10000];

  int n = 0;
  while (true) {
    // if (n>9999) return -1;

    cin >> x[n];

    if (x[n] == 0)
      break;

    ++n;
  }

  for (int i = 0; i < n; ++i) {
    cout << "Case " << i + 1 << ": " << x[i] << endl;
  }

  return 0;
}


// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D&lang=jp

#include <iostream>
using namespace std;

int main() {

  int a, b;
  int d, r;
  double da, db, f;
  cin >> a >> b;

  da = a;
  db = b;

  cout << fixed;
  cout << a / b << " " << a % b << " " << da / db << endl;
  return 0;
}

#include <iomanip>
#include <iostream>
using namespace std;

int main() {

  double r = 0;
  double pi = 3.141592653589; // 円周率の設定

  cin >> r;

  cout << fixed; // 出力時の小数点以下の有効数字を6桁に設定
  cout << setprecision(6); // さらに大きな数を指定しても可

  cout << r * r * pi << " ";  // 面積の出力
  cout << r * 2 * pi << endl; // 円周の出力

  return 0;
}


#include <stdio.h>
int main() {
  int a, b, d = 0, r = 0;
  double f = 0.0;
  scanf("%d%d", &a, &b);
  d = a / b;
  r = a % b;
  f = (double)a / b;
  printf("%d %d %f\\n", d, r, f);
  return 0;
}

#include <stdio.h>
int main() {
  double r;
  double S = 0.0, L = 0.0, pi = 3.14159265359;
  scanf("%lf", &r);
  S = r * r * pi;
  L = 2 * r * pi;
  printf("%.6lf %.6lf\\n", S, L);
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main() {

  int a, b, d, r;
  double f;
  cin >> a >> b;

  d = a / b;
  r = a % b;
  f = (double)a / (double)b;

  printf("%ld %ld %.61f\\n", d, r, f);
  return 0;
}

#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>

using namespace std;

int main() {

  double r;
  cin >> r;
  printf("%f %f\\n", M_PI * (r * r), 2 * M_PI * r);
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  cout << fixed << setprecision(12);
  int a, b;
  cin >> a >> b;
  cout << a / b << " " << a % b << " " << (double)a / b << endl;

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  cout << fixed << setprecision(6);
  double a;
  cin >> a;
  cout << a * a * acos(-1) << " " << 2 * a * acos(-1) << endl;

  return 0;
}


#include <cassert>
#include <cmath>
#include <iostream>
// #define NDEBUG
int main(void) {
  using namespace std;
  static const int INPUT_R_MAX = 10000;
  static const int INPUT_R_MIN = 1;
  double input_r = 0;
  double area = 0;          /* 面積 */
  double circumference = 0; /* 円周 */

  cin >> input_r; /* 半径 */

  /* 入力値の前提条件 */
  assert(INPUT_R_MIN <= input_r && input_r <= INPUT_R_MAX);

  /* Calculation */
  area = input_r * input_r * M_PI;
  circumference = input_r * 2 * M_PI;

  /* Output */
  cout << fixed << area << " " << circumference << endl;
  return 0;
}

#include <cassert>
#include <cmath>
#include <iostream>
// #define NDEBUG
int main(void) {
  using namespace std;
  static const int INPUT_R_MAX = 10000;
  static const int INPUT_R_MIN = 0;
  double input_r = 0;
  double area = 0;          /* 面積 */
  double circumference = 0; /* 円周 */

  cin >> input_r; /* 半径 */

  /* 入力値の前提条件 */
  assert(INPUT_R_MIN <= input_r && input_r <= INPUT_R_MAX);

  /* Calculation */
  area = input_r * input_r * M_PI;
  circumference = input_r * 2 * M_PI;

  /* Output */
  cout << fixed << area << " " << circumference << endl;
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {

  cout << fixed << setprecision(12);

  int a, b;
  cin >> a >> b;

  cout << a / b << " ";
  cout << a % b << " ";
  cout << (double)a / b << endl;

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  cout << fixed << setprecision(12);

  double r;
  cin >> r;

  double PI = acos(-1);
  double area = r * r * PI;
  double cir = (r + r) * PI;
  cout << area << " " << cir << endl;

  return 0;
}


#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
// #define shosu(n) setprecision(n)
// #define ENDL endl
using namespace std;
int main() {
  double n;
  cin >> n;
  cout << setprecision(8) << n * n * 3.141592653589 << ' ' << setprecision(8)
       << 2 * n * 3.14159265358972 << endl;
  return 9;
}

#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  double r;
  cin >> r;
  printf("%f %f\\n", r * r * 3.141592653589, 2 * r * 3.141592653589);
  return 0;
}


// incomplete......
#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, r;
  double are, cir, pi = 3.141592;
  while (scanf("%d", &r) != EOF) {
    are = pi * r * r;
    cir = 2 * pi * r; // circumstances...
    // cout<<are<<" "<<cir<<endl;
    printf("%.6lf %.6lf\\n", are, cir);
  }
}

// incomplete......
#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, r;
  double are, cir, pi = 3.1415926535897932384626433832795;
  while (cin >> r) {
    are = pi * r * r;
    cir = 2 * pi * r; // circumstances...
    // cout<<are<<" "<<cir<<endl;
    printf("%.15lf %.15lf\\n", are, cir);
  }
  return 0;
}


#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  int a, b, d;
  cin >> a >> b;
  d = a / b;
  cout << d << " " << a - b * d << " " << fixed << setprecision(5)
       << (double)a / b << endl;
  return 0;
}

#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  double pi = 3.141592653589793;
  double r, pir;
  cin >> r;
  pir = pi * r;
  cout << fixed << setprecision(5) << pir * r << " " << pir * 2 << endl;
  return 0;
}


#include <iostream>
using namespace std;
int main(void) {
  int a, b, r;
  double d, f;
  cin >> a;
  cin >> b;

  d = a / b;
  r = a % b;
  f = 1.00000 * a / b;
  cout << d;
  cout << " ";
  cout << r;
  cout << " ";
  cout << f;
  cout << endl;
}

#include <iomanip>
#include <iostream>
using namespace std;
int main(void) {
  double r, a, l;
  cin >> r;
  a = r * r * 3.141592653589;
  l = r * 2 * 3.141592653589;

  cout << fixed << setprecision(6) << a;
  cout << " ";
  cout << fixed << setprecision(6) << l;
  cout << endl;
}


#include <iostream>
#include <stdio.h>
using namespace std;

#define _USE_MATH_DEFINES
#include <math.h>

int main() {
  int nA;
  cin >> nA;
  double dA, dC;
  dA = M_PI * nA * nA;
  dC = 2 * M_PI * nA;

  printf("%.6d %.6d\\n", dC, dA);

  system("pause");
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

#define _USE_MATH_DEFINES
#include <math.h>

int main() {
  double nA;
  cin >> nA;
  double dA, dC;
  dA = M_PI * nA * nA;
  dC = 2 * M_PI * nA;

  printf("%.6f %.6f\\n", dA, dC);

  // system("pause");
  return 0;
}


#include "iostream"
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  double fa = a, fb = b;
  cout << (a - a % b) / b << " " << a % b << " " << fa / fb;
  return 0;
}

#include "iostream"
#include "stdio.h"
using namespace std;

int main() {
  double r, pi;
  cin >> r;
  pi = 3.141592653589;
  double circleL = r * 2 * pi;
  double circleS = r * r * pi;
  printf("%0.5f %0.5f", circleS, circleL);
}


#include <bits/stdc++.h>

using namespace std;

int main() {
  cout << fixed << setprecision(12);

  int a, b;
  cin >> a >> b;

  cout << a / b << "";
  cout << a % b << "";
  cout << (double)a / b << endl;
}

#include <bits/stdc++.h>

using namespace std;

int main() {

  cout << fixed << setprecision(12);

  double r;
  cin >> r;

  double PI = acos(-1);
  double area = r * r * PI;
  double cir = (r + r) * PI;
  cout << area << " " << cir << endl;
}


#include <stdio.h>

int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d %lf\\n", a / b, a % b, a / (double)b);
}

#include <math.h>
#include <stdio.h>

int main() {
  double a;
  scanf("%lf", &a);
  printf("%lf %lf\\n", M_PI * a * a, 2 * M_PI * a);
}


#include <stdio.h>
#define PI 3.14159267

int main() {
  int r;
  double s, l;
  scanf("%d", r);
  s = r * r * PI;
  l = 2 * PI * r;
  printf("%d %d\\n", s, l);
  return 0;
}

#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  double r;
  cin >> r;

  double S = r * r * M_PI;
  double shu = 2 * r * M_PI;

  printf("%.5f %.5f", S, shu);
}


#include <cstdio>
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d %lf\\n", a / b, a % b, (double)a / b);
  return 0;
}

#include <cstdio>
int main() {
  double r, pi = 3.141592653589;
  scanf("%lf", &r);
  printf("%lf %lf\\n", r * r * pi, 2 * r * pi);
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;

const double pi = 3.1415926535;
int main() {
  double r, l, a;

  cin >> r;

  l = 2 * r * pi;
  a = r * r * pi;

  printf("%.6lf ", a);
  printf("%.6lf\\n", l);

  while (1) {
  }

  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

const double pi = 3.141592653589793;
int main() {
  double r, l, a;

  cin >> r;

  l = 2 * r * pi;
  a = r * r * pi;

  printf("%.6lf ", a);
  printf("%.6lf\\n", l);

  return 0;
}


#include <stdio.h>
int main(void) {
  int a, b, k;
  char op;
  scanf("%d %c %d", &a, &op, &b);
  while (op != '?') {
    if (op == '+') {
      k = a + b;
    } else if (op == '-') {
      k = a - b;
    } else if (op == '*') {
      k = a * b;
    } else if (op == '/') {
      k = a / b;
    }
    printf("%d\\n", k);
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  char op;
  int ans;

  while (1) {
    scanf("%d %c %d", &a, &op, &b);

    if (op == '?')
      break;

    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
      break;
    }

    printf("%d\\n", ans);
  }

  return 0;
}


#include <stdio.h>

int main() {
  int x, y;
  char op;
  while (scanf("%d %c %d", &x, &op, &y)) {
  }

  return 0;
}

#include <stdio.h>

int main() {
  int x, y;
  char op;
  while (scanf("%d %c %d", &x, &op, &y) && op != '?') {
    if (op == '+') {
      printf("%d\\n", x + y);
    } else if (op == '-') {
      printf("%d\\n", x - y);
    } else if (op == '*') {
      printf("%d\\n", x * y);
    } else if (op == '/') {
      printf("%d\\n", x / y);
    }
  }
  return 0;
}


#define USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {

  int a, b, d, r;
  double f;

  cin >> a >> b;
  d = a / b;
  r = a % b;
  f = a / b;
  cout << fixed;
  cout << setprecision(6) << d << " " << r << " " << f << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {

  int a, b, i, ans;
  char op;

  for (i = 1; i <= 100000000; i++) {
    ans = 0;
    cin >> a >> op >> b;
    if (op == '?')
      break;
    else if (op == '+') {
      ans = a + b;
    } else if (op == '-') {
      ans = a - b;
    } else if (op == '*') {
      ans = a * b;
    } else if (op == '/') {
      ans = a / b;
    }

    cout << ans << endl;
  }

  return 0;
}


#include <cstdio>

int main() {
  int a, b, x;
  char op;
  scanf("%d %c %d", &a, &op, &b);
  {
    switch (op) {
    case '+':
      x = a + b;
      break;
    case '-':
      x = a - b;
      break;
    case '*':
      x = a * b;
      break;
    case '/':
      x = a / b;
      break;
    case '?':
      break;
    }
    printf("%d\\n", x);
    return 8;
  }
}

#include <cstdio>

int main() {
  int a, b;
  char op;
  for (int n = 0;;) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      break;
    else if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  string op;
  cin >> a >> op >> b;
  while (1) {
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else {
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  string op;
  while (1) {
    cin >> a >> op >> b;
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else {
      break;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (true) {
    cin >> a >> op >> b;
    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    case '?':
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, c;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '+')
      c = a + b;
    else if (op == '-')
      c = a - b;
    else if (op == '*')
      c = a * b;
    else if (op == '/')
      c = a / b;
    else if (op == '?')
      break;
    cout << c << endl;
  }
  return 0;
}


#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b, p, m, k, w;
  char op;
  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;
    else if (op == '+') {
      p = a + b;
      cout << p << endl;
    } else if (op == '-') {
      m = a - b;
      cout << m << endl;
    } else if (op == '*') {
      k = a * b;
      cout << k << endl;
    } else if (op == '/') {
      w = a / b;
      cout << w << endl;
    }
  }

  return 0;
}

#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b, p, m, k, w;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    else if (op == '+') {
      p = a + b;
      cout << p << endl;
    } else if (op == '-') {
      m = a - b;
      cout << m << endl;
    } else if (op == '*') {
      k = a * b;
      cout << k << endl;
    } else if (op == '/') {
      w = a / b;
      cout << w << endl;
    }
  }

  return 0;
}


#include <iostream>
int main() {
  int a, b;
  char *o;
  while (1) {
    std::cin >> a >> o >> b;
    if (o == "0")
      break;
    else if (o == "+")
      std::cout << a + b;
    else if (o == "-")
      std::cout << a - b;
    else if (o == "*")
      std::cout << a * b;
    else
      std::cout << a / b;
  }

  return 0;
}

#include <iostream>

int main() {
  int a, b;
  char p;

  while (1) {

    std::cin >> a >> p >> b;
    if (p == '?')
      break;
    else if (p == '+') {
      std::cout << a + b << "\\n";
    } else if (p == '-') {
      std::cout << a - b << "\\n";
    } else if (p == '*') {
      std::cout << a * b << "\\n";
    } else if (p == '/') {
      std::cout << a / b << "\\n";
    }
  }

  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int a, b;
  string op;
  cin >> a >> op >> b;
  while (true) {
    if (op == "?") {
      break;
    } else if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int a, b;
  string op;
  while (true) {
    cin >> a >> op >> b;
    if (op == "?") {
      break;
    } else if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <iostream>
#include <vector>

#include <algorithm>
#include <cstdio>
using namespace std;

int main() {
  int x, y;
  char op;
  while (cin >> x >> op >> y) {
    if (op == '?')
      return -1;

    if (op == '+')
      cout << x + y << endl;
    if (op == '-')
      cout << x - y << endl;
    if (op == '*')
      cout << x * y << endl;
    if (op == '/' && y != 0)
      cout << x / y << endl;
  }
}

#include <iostream>
#include <vector>

#include <algorithm>
#include <cstdio>
using namespace std;

int main() {
  int x, y;
  char op;
  while (cin >> x >> op >> y) {
    if (op == '?')
      break;
    if (op == '+')
      cout << x + y << endl;
    if (op == '-')
      cout << x - y << endl;
    if (op == '*')
      cout << x * y << endl;
    if (op == '/' && y != 0)
      cout << x / y << endl;
  }
}


#include <iomanip>
#include <iostream>

#define PI 3.141592653589

using namespace std;

int main() {
  int a, b, r;
  char op;

  while (1) {
    cin >> a >> op >> b;

    if (a == 0 && b == 0) {
      break;
    }

    switch (op) {
    case '+':
      r = a + b;
      break;
    case '-':
      r = a - b;
      break;
    case '*':
      r = a * b;
      break;
    case '/':
      if (b == 0) {
        break;
      }
      r = a / b;
      break;
    default:
      break;
    }

    cout << r << endl;
  }
  return 0;
}

#include <iomanip>
#include <iostream>

#define PI 3.141592653589

using namespace std;

int main() {
  int a, b, r;
  char op;

  while (1) {
    cin >> a >> op >> b;

    if (op == '?') {
      break;
    }

    switch (op) {
    case '+':
      r = a + b;
      break;
    case '-':
      r = a - b;
      break;
    case '*':
      r = a * b;
      break;
    case '/':
      if (b == 0) {
        break;
      }
      r = a / b;
      break;
    default:
      break;
    }

    cout << r << endl;
  }
  return 0;
}


#include <cstdio>

int main() {
  int a, b;
  char op;
  while (true) {
    scanf("%d %c %d", &a, &op, &b);
    if (a == 0 && op == '?' && b == 0)
      break;
    if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
  return 0;
}

#include <cstdio>

int main() {
  int a, b;
  char op;
  while (true) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      break;
    if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int a, b;
  int flag = 1;
  char op[10];
  while (flag) {
    scanf("%d%s%d", &a, op, &b);
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    } else if (op == "?") {
      flag = 0;
    }
  }
  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int a, b;
  int flag = 1;
  char op;
  while (flag) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else if (op == '?') {
      flag = 0;
    }
  }
  return 0;
}


#include <iostream>

int main() {
  int x, y;
  char op;
  while (1) {
    std::cin >> x;
    std::cin >> op;
    std::cin >> y;
    switch (op) {
    case '+':
      std::cout << x + y << std::endl;
      break;
    case '-':
      std::cout << x - y << std::endl;
      break;
    case '*':
      std::cout << x * y << std::endl;
      break;
    case '/':
      std::cout << x / y << std::endl;
      break;
    case '?':
      break;
    }
  }
  return 0;
}

#include <iostream>

int main() {
  int x, y;
  char op;
  while (1) {
    std::cin >> x;
    std::cin >> op;
    std::cin >> y;
    if (std::cin.good() == 0) {
      break;
    }
    switch (op) {
    case '+':
      std::cout << x + y << std::endl;
      break;
    case '-':
      std::cout << x - y << std::endl;
      break;
    case '*':
      std::cout << x * y << std::endl;
      break;
    case '/':
      std::cout << x / y << std::endl;
      break;
    default:
      break;
    }
  }
  return 0;
}


#include <iostream>
#include <string>
using namespace std;

int main() {
  char op;
  int a, b, result = 0;

  while (1) {
    cin >> a >> op >> b;
    if (a == 0 && b == 0 && op == '?')
      break;
    else if (op == '+')
      result = a + b;
    else if (op == '-')
      result = a - b;
    else if (op == '/')
      result = a / b;
    else if (op == '*')
      result = a * b;
    cout << result << endl;
    result = 0;
  }
  return 0;
}

#include <iostream>
#include <string>
using namespace std;

int main() {
  char op;
  int a, b, result = 0;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    else if (op == '+')
      result = a + b;
    else if (op == '-')
      result = a - b;
    else if (op == '/')
      result = a / b;
    else if (op == '*')
      result = a * b;
    cout << result << endl;
    result = 0;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, op, b;
  while (true) {
    cin >> a >> op >> b;
    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else
      cout << a / b << endl;
    if (op == '?')
      break;
  }
}

#include <iostream>
using namespace std;
int a(int a, int b) { return a + b; }
int b(int a, int b) { return a - b; }
int c(int a, int b) { return a * b; }
int d(int a, int b) { return a / b; }
int main() {
  int n, m;
  char op;
  while (cin >> n >> op >> m && op != '?') {
    if (op == '+')
      cout << a(n, m) << endl;
    else if (op == '-')
      cout << b(n, m) << endl;
    else if (op == '*')
      cout << c(n, m) << endl;
    else if (op == '/')
      cout << d(n, m) << endl;
  }
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (true) {
    if (op == '?')
      break;
    int ans;
    if (op == '+')
      ans = a + b;
    if (op == '-')
      ans = a - b;
    if (op == '*')
      ans = a * b;
    if (op == '/')
      ans = a / b;
    cout << ans << endl;
  }
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  while (true) {
    int a, b;
    char op;
    cin >> a >> op >> b;
    if (op == '?')
      break;
    int ans;
    if (op == '+')
      ans = a + b;
    if (op == '-')
      ans = a - b;
    if (op == '*')
      ans = a * b;
    if (op == '/')
      ans = a / b;
    cout << ans << endl;
  }
}


#include <iostream>

int main() {
  int a, b, op, z;

  while (1) {
    std::cin >> a >> op >> b;

    if (op == '?') {
      break;
    }

    if (op == '+') {
      z = a + b;
    } else if (op == '-') {
      z = a - b;
    } else if (op == '*') {
      z = a * b;
    } else if (op == '/') {
      z = a / b;
    }
    std::cout << z << std::endl;
  }

  return 0;
}

#include <iostream>

int main() {
  int a, b, z;
  char op;

  while (1) {
    std::cin >> a >> op >> b;

    if (op == '?') {
      break;
    }

    if (op == '+') {
      z = a + b;
    } else if (op == '-') {
      z = a - b;
    } else if (op == '*') {
      z = a * b;
    } else if (op == '/') {
      z = a / b;
    }
    std::cout << z << std::endl;
  }

  return 0;
}


#include <cstdio>

using namespace std;

int main(void) {
  int a, b;
  char op;

  while (1) {
    scanf("%d%c%d", &a, &op, &b);

    switch (op) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '/':
      printf("%d\\n", (int)((float)a / b));
      break;
    }
    if (op == '?') {
      break;
    }
  }
  return 0;
}

#include <cstdio>

using namespace std;

int main(void) {
  int a, b;
  char op;

  while (1) {
    scanf("%d %c %d", &a, &op, &b);

    switch (op) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '/':
      printf("%d\\n", (int)((float)a / b));
      break;
    }
    if (op == '?') {
      break;
    }
  }
  return 0;
}


#include <iostream>
#define PI 3.141592653589
using namespace std;

int main() {
  while (1) {
    int x, y;
    char c;
    cin >> x >> c >> y;

    if (c == 'c')
      break;
    int z;
    switch (c) {
    case '+':
      z = x + y;
      break;
    case '-':
      z = x - y;
      break;
    case '*':
      z = x * y;
      break;
    case '/':
      z = x / y;
      break;
    case '%':
      z = x % y;
      break;
    }
    printf("%d", z);
  }

  return 0;
}

#include <iostream>
#define PI 3.141592653589
using namespace std;

int main() {
  while (1) {
    int x, y;
    char c;
    cin >> x >> c >> y;

    if (c == '?')
      break;
    int z;
    switch (c) {
    case '+':
      z = x + y;
      break;
    case '-':
      z = x - y;
      break;
    case '*':
      z = x * y;
      break;
    case '/':
      z = x / y;
      break;
    case '%':
      z = x % y;
      break;
    }
    printf("%d\\n", z);
  }

  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  while (1) {
    int a, b;
    char op;
    if (op == '?')
      break;
    cin >> a >> op >> b;
    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else
      cout << a / b << endl;
  }
  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  while (1) {
    int a, b;
    char op;
    cin >> a >> op >> b;
    if (op == '?')
      break;
    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else
      cout << a / b << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}


#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>

using namespace std;
int main() {
  int a, b;
  string op;
  cin >> a >> op >> b;
  while (1) {
    if (op == "?") {
      break;
    } else {
      if (op == "+") {
        cout << a + b << endl;
      } else if (op == "-") {
        cout << a - b << endl;
      } else if (op == "*") {
        cout << a * b << endl;
      } else {
        cout << a / b << endl;
      }
    }
  }
  return 0;
}

#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>

using namespace std;
int main() {

  while (1) {
    int a, b;
    string op;
    cin >> a >> op >> b;
    if (op == "?") {
      break;
    } else {
      if (op == "+") {
        cout << a + b << endl;
      } else if (op == "-") {
        cout << a - b << endl;
      } else if (op == "*") {
        cout << a * b << endl;
      } else {
        cout << a / b << endl;
      }
    }
  }
  return 0;
}


#include <stdio.h>
using namespace std;

int a = 0, b = 0, op = 0;
int c = 0;
int main() {
  while (1) {
    //	scanf("%d %d %c", &a, &b, &op);
    if (op == '?') {
      break;
    } else if (op == '+') {
      c = a + b;
      printf("%d\\n", c);
    } else if (op == '-') {
      c = a - b;
      printf("%d\\n", c);
    } else if (op == '*') {
      c = a * b;
      printf("%d\\n", c);
    } else if (op == '/') {
      c = a / b;
      printf("%d\\n", c);
    }
  }
}

#include <stdio.h>
using namespace std;

int a = 0, b = 0;
char op;
int main() {
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?') {
      break;
    } else if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
}


/*
 * iraira.cpp
 *
 *  Created on: 2018/05/02
 *      Author: J01003
 */
/*
 * taete.cpp
 *
 *  Created on: 2018/04/26
 *      Author: J01003
 */
#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int a, b, op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
    if (op == '?') {
      return 0;
    }
  }
  return 0;
}

/*
 * iraira.cpp
 *
 *  Created on: 2018/05/02
 *      Author: J01003
 */
/*
 * taete.cpp
 *
 *  Created on: 2018/04/26
 *      Author: J01003
 */
#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int a, b;
  string op;
  while (1) {
    cin >> a >> op >> b;
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
    if (op == "?") {
      return 0;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b, i;
  char op;

  while (1) {
    cin >> a >> b >> op;

    if (op == '+') {
      i = a + b;
      cout << i << endl;
    } else if (op == '-') {
      i = a - b;
      cout << i << endl;
    } else if (op == '*') {
      i = a * b;
      cout << i << endl;
    } else if (op == '/') {
      i = a / b;
      cout << i << endl;
    }
    if (op == '?') {
      break;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, i;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '+') {
      i = a + b;
      cout << i << endl;
    } else if (op == '-') {
      i = a - b;
      cout << i << endl;
    } else if (op == '*') {
      i = a * b;
      cout << i << endl;
    } else if (op == '/') {
      i = a / b;
      cout << i << endl;
    }
    if (op == '?') {
      break;
    }
  }

  return 0;
}