let id x = x;;

let () =
    let rec f n = 
        let x = Scanf.sscanf(read_line()) "%d" id in
        if x = 0 then () 
        else 
        	(Printf.printf "Case %d: %d\n" n x;
        	 f (n + 1))
     in f 1
