A, B, C = list(map(int, input().split()))



ans = 0

if A == B == C and A % 2 == 0:

    ans = -1

else:

    count = 0

    while (A % 2 == B % 2 == C % 2 == 0):

        wA = (B/2 + C/2)

        wB = (A/2 + C/2)

        wC = (A/2 + B/2)

        A = wA

        B = wB

        C = wC

        count += 1

    ans = count



print(ans)

def solve(A, B, C):

    if (A % 2 == 1 or B % 2 == 1 or C % 2 == 1):

        return 0

    elif (A == B == C):

        return -1

    else:

        return solve((B/2 + C/2), (A/2 + C/2), (A/2 + B/2)) + 1



A, B, C = list(map(int, input().split()))

ans = solve(A, B, C)

print(ans)

A, B, C = list(map(int, input().split()))
ans = 0
if A == B == C and A % 2 == 0:
    ans = -1
else:
    count = 0
    while A % 2 == B % 2 == C % 2 == 0:
        wA = B / 2 + C / 2
        wB = A / 2 + C / 2
        wC = A / 2 + B / 2
        A = wA
        B = wB
        C = wC
        count += 1
    ans = count
print(ans)

def solve(A, B, C):
    if A % 2 == 1 or B % 2 == 1 or C % 2 == 1:
        return 0
    elif A == B == C:
        return -1
    else:
        return solve((B / 2 + C / 2), (A / 2 + C / 2), (A / 2 + B / 2)) + 1


A, B, C = list(map(int, input().split()))
ans = solve(A, B, C)
print(ans)

+def solve(A, B, C): +    if A % 2 == 1 or B % 2 == 1 or C % 2 == 1: +        return 0 +    elif A == B == C: +        return -1 +    else: +        return solve((B / 2 + C / 2), (A / 2 + C / 2), (A / 2 + B / 2)) + 1 + + -ans = 0 -if A == B == C and A % 2 == 0: -    ans = -1 -else: -    count = 0 -    while A % 2 == B % 2 == C % 2 == 0: -        wA = B / 2 + C / 2 -        wB = A / 2 + C / 2 -        wC = A / 2 + B / 2 -        A = wA -        B = wB -        C = wC -        count += 1 -    ans = count +ans = solve(A, B, C)