#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    int cn=0;
    while(a%2==0&&b%2==0&&c%2==0)
    {
        cn++;
        int x=b/2+c/2;
        int y=a/2+c/2;
        int z=a/2+b/2;
        a=x;
        b=y;
        c=z;
        //cout<<a<<' '<<b<<' '<<c<<' '<<endl;
    }
    cout<<cn<<endl;;
    return 0;
}

