21 lines
256 B
C++
21 lines
256 B
C++
|
|
#include <iostream>
|
||
|
|
using namespace std;
|
||
|
|
/*
|
||
|
|
896
|
||
|
|
|
||
|
|
7
|
||
|
|
*/
|
||
|
|
int main() {
|
||
|
|
int n;
|
||
|
|
cin >> n;
|
||
|
|
int b = 2;
|
||
|
|
// n=8
|
||
|
|
int cnt = 0;
|
||
|
|
while (n % b == 0) {
|
||
|
|
b *= 2;
|
||
|
|
cnt++;
|
||
|
|
}
|
||
|
|
printf("%d", cnt);
|
||
|
|
|
||
|
|
return 0;
|
||
|
|
}
|