a, b, c = list(map(int, input().split()))

 

if a % 2 != 0 or b % 2 != 0 or c % 2 != 0:

    print((0))    

    exit() 

    

if a == b == c:

    print((-1))

    exit()

    

cnt = 0

while (a % 2 == 0 and b % 2 == 0 and c % 2 == 0): 

    a, b, c = (b+c)//2, (a+c)//2, (a+b)//2

    cnt += 1

 

print(cnt)

def resolve():

    a, b, c = list(map(int, input().split()))

    if a%2 != 0 or b%2 != 0 or c%2 != 0:

        print((0))

        exit()

    if a == b == c:

        print((-1))

        exit()

    ans = 0

    while (a % 2 == 0 and b % 2 == 0 and c % 2 == 0): 

        a, b, c = (b+c)//2, (a+c)//2, (a+b)//2

        ans += 1

    print(ans)

resolve()
a, b, c = list(map(int, input().split()))
if a % 2 != 0 or b % 2 != 0 or c % 2 != 0:
    print((0))
    exit()
if a == b == c:
    print((-1))
    exit()
cnt = 0
while a % 2 == 0 and b % 2 == 0 and c % 2 == 0:
    a, b, c = (b + c) // 2, (a + c) // 2, (a + b) // 2
    cnt += 1
print(cnt)

def resolve():
    a, b, c = list(map(int, input().split()))
    if a % 2 != 0 or b % 2 != 0 or c % 2 != 0:
        print((0))
        exit()
    if a == b == c:
        print((-1))
        exit()
    ans = 0
    while a % 2 == 0 and b % 2 == 0 and c % 2 == 0:
        a, b, c = (b + c) // 2, (a + c) // 2, (a + b) // 2
        ans += 1
    print(ans)


resolve()

-a, b, c = list(map(int, input().split())) -if a % 2 != 0 or b % 2 != 0 or c % 2 != 0: -    print((0)) -    exit() -if a == b == c: -    print((-1)) -    exit() -cnt = 0 -while a % 2 == 0 and b % 2 == 0 and c % 2 == 0: -    a, b, c = (b + c) // 2, (a + c) // 2, (a + b) // 2 -    cnt += 1 -print(cnt) +def resolve(): +    a, b, c = list(map(int, input().split())) +    if a % 2 != 0 or b % 2 != 0 or c % 2 != 0: +        print((0)) +        exit() +    if a == b == c: +        print((-1)) +        exit() +    ans = 0 +    while a % 2 == 0 and b % 2 == 0 and c % 2 == 0: +        a, b, c = (b + c) // 2, (a + c) // 2, (a + b) // 2 +        ans += 1 +    print(ans) + + +resolve()