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

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