#55034: c++ ans


yp11452077@yphs.tp.edu.tw (706-08胡瑀霏)


#include <bits/stdc++.h>

using namespace std;

int main(){

    int cnt=1,ans=0,n,i=1;

    while(cin>>n){

        if(n<0) break;

        while(i<n){

            i*=2;

            ans++;

        }

        cout<<"Case "<<cnt++<<": "<<ans<<endl;

    }

}