peterverebics/CodeNet_Python_118 huggingface dataset:
import sys

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


if A == B == C:
    if A % 2 == 1:
        print(0)
    else:
        print(-1)
        sys.exit()

cnt = 0
while A % 2 == 0 or B % 2 == 0 or C % 2 == 0:
    a = B // 2 + C // 2
    b = A // 2 + C // 2
    c = A // 2 + B // 2
    A = a
    B = b
    C = c
    cnt += 1
print(cnt)
A, B, C = map(int,input().split())

if A == B == C:
    print(-1)
    exit()

LA = []
LB = []
LC = []
LA.append(A)
LB.append(B)
LC.append(C)
i = 0
cnt = 0

while LA[i] % 2 == 0 and LB[i] % 2 == 0 and LC[i] % 2 == 0:
    LA.append((LB[i]+LC[i])/2)
    LB.append((LC[i]+LA[i])/2)
    LC.append((LA[i]+LB[i])/2)
    i += 1
    cnt += 1

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


def cnt(N):
    cnt = 0
    while N % 2 == 0:
        cnt += 1
        N //= 2

    return cnt


if A == B == C and A % 2 == 0:
    print(-1)
elif len(set([cnt(A), cnt(B), cnt(C)])) == 1:
    print(min(cnt(A), cnt(B), cnt(C)) + 1)
else:
    print(min(cnt(A), cnt(B), cnt(C)))
import sys

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

count = 0
while True:
    a = B//2 + C//2
    b = C//2 + A//2
    c = A//2 + B//2
    count += 1
    if (A == B and B == C) or (count > 10**9):
        print('-1')
        sys.exit()
    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        break
    A = a
    B = b
    C = c

print(count)
A,B,C = map(int,input().split())
s = [A,B,C]

def main(a,b,c):
  if a == b and b == c:
    return -1

  cnt = 0
  while (a % 2 == 0) and (b % 2 == 0) and (c % 2 == 0):
    a1,b1,c1 = a,b,c
    a = (b1+c1)/2
    b = (a1+c1)/2
    c = (a1+b1)/2
    cnt += 1
    #print(a,b,c)
    if [a,b,c] == s:
      return -1
    
  return cnt    
    

ans = main(A,B,C)
print(ans)
A, B, C = map(int, input().split())
cnt = 0
while(1):
    A_tmp = A
    B_tmp = B
    C_tmp = C
    A = (B_tmp+C_tmp)/2
    B = (A_tmp+C_tmp)/2
    C = (A_tmp+C_tmp)/2
    cnt += 1
    if A%2!=0 or B%2!=0 or C%2!=0:
        break
    if A_tmp==A and B_tmp==B and C_tmp==C:
        cnt = -1
        break
print(cnt)
A, B, C = map(int, input().split())
cnt = 0
while True:
    if A == B and A == C:
        print(-1)
        break
    elif A % 2 != 0 or B % 2 != 0 or C % 2 != 0:
        print(cnt)
        break
    else:
        A, B, C = (B+C)//2, (C+A)//2, (A+B)//2
        cnt += 1
a,b,c = map(int,input().split())
if a==b==c:
    print(-1)
else:
    res = 0
    while True:
        if a%2!=0 or b%2!=0 or c%2!=0:
            break
        else:
            res += 1
            nx_a = b//2 + c//2
            nx_b = a//2 + c//2
            nx_c = a//2 + b//2
            a,b,c = nx_a, nx_b, nx_c
    print(res)
a,b,c = map(int,input().split())
ans = 0
if a == b and b == c:
  ans = -1
else:
  while a%2 != 1 and b%2 != 1 and c%2 != 1:
    aa = b/2 + c/2
    bb = c/2 + a/2
    cc = a/2 + b/2
    a = int(aa)
    b = int(bb)
    c = int(cc)
    ans += 1
print(ans)
"""Boot-camp-for-Beginners_Easy013_A_Candy-Distribution-Again_30-August-2020.py"""

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

i = 0
while True:
    a,b,c=A,B,C
    A = (b+c)/2
    B = (c+a)/2
    C = (a+b)/2
    i += 1
    if (A % 2 == 1 or B % 2 == 1 or C % 2 == 1):
        print(i)
        break
    elif(A==B or B==C or C==A):
        print(-1)
        break
def check(A,B,C):
  if A==0 or B==0 or C==0:
    return False
  if A%2!=0 or B%2!=0 or C%2!=0:
    return False
  return True

A,B,C=map(int,input().split())
ans=0
if A==B==C:
  print(-1)
  exit()
while check(A,B,C)==True:
  a=B//2+C//2
  b=A//2+C//2
  c=A//2+B//2
  A,B,C=a,b,c
  ans+=1
  if 10**9<ans:
    ans=-1
    break
print(ans)
a,b,c=map(int,input().split())

ans=0
if a==b==c:
  print(-1)
else:
  while a%2==0 and b%2==0 and c%2==0:
    num_a,num_b,num_c=a/2,b/2,c/2
    a=num_b+num_c
    b=num_a+num_c
    c=num_a+num_b
    print(a,b,c)
    ans+=1
  print(ans)
A, B, C = map(int,input().split())

if A == 1 and B == 1 and C == 1:
    print(0)

elif A == B == C:
    print(-1)
    exit()

LA = []
LB = []
LC = []
LA.append(A)
LB.append(B)
LC.append(C)
i = 0
cnt = 0

while LA[i] % 2 == 0 and LB[i] % 2 == 0 and LC[i] % 2 == 0:
    LA.append((LB[i]+LC[i])/2)
    LB.append((LC[i]+LA[i])/2)
    LC.append((LA[i]+LB[i])/2)
    i += 1
    cnt += 1

print(cnt)
a,b,c=map(int,input().split())
num1=0
num2=0
num3=0
if a==b and b==c:
    print(-1)
else:
    for i in range(a*b*c):
        if a%2==1 or b%2==1 or c%2==1:
            break
        num1=a//2
        num2=b//2
        num3=c//2
        a=num2+num3
        b=num3+num1
        c=num1+num2
    print(i)
import sys
A, B, C = [int(x) for x in input().split()]
ans = 0
if(A==B)and(B==C):
  print(-1)
  sys.exit()
while (A%2==0)and(B%2==0)and(C%2==0):
  a = B/2 + C/2
  b = C/2 + A/2
  c = A/2 + B/2
  A, B, C = a, b, c
  ans += 1
print(ans)
a,b,c=map(int,input().split())
e=a-b|b-c
print((e!=b%2)*len(f'{e^e-1:b}')-1)
A,B,C=map(int,input().split())
if A==B==C:
    print(-1)
else:
    count=0
    while A%2==B%2==C%2==0:
        A=(B+C)/2
        B=(C+A)/2
        C=(A+B)/2
        count+=1
    print(count)
a, b, c = map(int, input().split())

if a == b == c and a % 2 == 0:
    print(-1)

counter = 0
while True:
    counter += 1
    w_a = a / 2
    w_b = b / 2
    w_c = c / 2

    a = w_b + w_c
    b = w_a + w_c
    c = w_b + w_a

    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        print(counter)
        exit(0)
import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(rs())
def rs_(): return [_ for _ in rs().split()]
def ri_(): return [int(_) for _ in rs().split()]

import numpy as np
a = np.array(ri_())
ans = 0
while True:
    if a[0] == a[1] and a[1] == a[2]:
        ans = -1
        break
    if np.any(a % 2 == 1):
        break
    a = (sum(a) - a) // 2
    ans += 1
print(ans)
a, b, c = map(int, input().split())

ans = 0
done = set((a, b, c))
while True:
    ans += 1
    s = a // 2
    t = b // 2
    u = c // 2
    a, b, c = t + u, s + u, s + t
    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        print(ans)
        break
    if (a, b, c) in done:
        print(-1)
        break
    else:
        done.add((a, b, c))
a, b, c = map(int, input().split())
a_tmp = a ; b_tmp = b ; c_tmp = c
count = 0
while True :
    count += 1
    a = b_tmp/2 + c_tmp/2
    b = a_tmp/2 + c_tmp/2
    c = a_tmp/2 + b_tmp/2
    a_tmp = a ; b_tmp = b ; c_tmp = c
    if a%2 == 1 or b%2 == 1 or c%2 == 1 :
        print(count)
        break
    elif count > 10000000 :
        print("-1")
        break
    else :
        continue
a,b,c=map(int,input().split())
ans=0
if a==b==c:
    print ("-1")
else:
    while a%2==0 and b%2==0 and c%2==0:
        ta,tb,tc=a,b,c
        a=(tb//2)+(tc//2)
        b=(ta//2)+(tc//2)
        c=(ta//2)+(tb//2)
        ans+=1
    print (ans)
a,b,c = list(map(int, input().split()))

if a==b==c:
    print(-1)
    exit()

ans=0    
while all(i&1==0 for i in [a,b,c]):
    a,b,c = (b+c)//2, (a+c)//2, (a+b)//2
    ans+=1

print(ans)
a,b,c=map(int,input().split())
ab,bc,ca=abs(a-b),abs(b-c),abs(c-a)
ans=0
if a==b==c or a%2!=0 or b%2!=0 or c%2!=0:
  print(-1)
else:
  while ab%2==0 and bc%2==0 and ca%2==0:
    ab//=2
    bc//=2
    ca//=2
    ans+=1
  print(ans)
a,b,c=map(int,input().split())
if a==b and b==c:
    print(-1)
else:
    k=0
    while a%2==0 and b%2==0 and c%2==0:
        A=a
        B=b
        C=c
        a=B//2+C//2
        b=A//2+C//2
        c=A//2+B//2
        k+=1
    print(k)
import sys

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

if A == B and B == C:
    print('-1')
    sys.exit()

count = 0
while True:
    a = B//2 + C//2
    b = C//2 + A//2
    c = A//2 + B//2
    count += 1
    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        break
    if (a == b and b == c) or count > 31:
        print('-1')
        sys.exit()
    A = a
    B = b
    C = c

print(count)
a,b,c = map(int,input().split())
r = 0
if a == b == c:
  print(-1)
  exit()

while True:
  if a%2 == 1 or b%2 == 1 or c%2 ==1:
    break
  r += 1
  aa = (b+c)//2
  bb = (a+c)//2
  cc = (a+b)//2
  a,b,c = aa,bb,cc

print(r)
#13
a,b,c = map(int,input().split())
cnt = 0
while a%2 == b%2 == c%2 == 0:
    if a==b==c:
        print('-1')
        break
    else:
        a,b,c = b//2+c//2,c//2+a//2,a//2+b//2
        cnt+=1
        
print(cnt)
a,b,c=map(int,input().split())
ans=-1
for i in range(1,10000):
    x=a//2
    y=b//2
    z=c//2
    a=y+z
    b=x+z
    c=x+y
    print("{}-{}-{}".format(a,b,c))
    if a%2==1 or b%2==1 or c%2==1:
        ans=i
        break
print(ans)
A,B,C = list(map(int,input().split()))
if A==B==C:
    print(-1)
else:
    count = 0
    while not A%2 and not B%2 and not C%2:
        A,B,C = (B+C)/2,(A+C)/2,(A+B)/2
        count += 1
    print(count)
a, b, c = map(int, input().split())

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)
a,b,c = map(int,input().split())
ans = 0
p = 0

for i in range(c):
    if int(a/2)*2==a and int(b/2)*2==b and int(c/2)*2==c:
        ans += 1
        x = b / 2 + c / 2
        y = a / 2 + c / 2
        z = b / 2 + a / 2
        a = x
        b = y
        c = z
        if a == b and b == c:
            break
    else:
        p = 1
        print(ans)
        break
from fractions import gcd

if __name__ == "__main__":
    a, b, c = map(int, input().split())

    if a == b == c:
        print(-1)
        exit()

    ab = abs(a-b)
    bc = abs(b-c)

    g = gcd(ab, bc)

    ans = 0
    while g % 2 == 0:
        ans += 1
        g //= 2

    print(ans)
a,b,c = map(int,input().split())
r = 0

while True:
  if a == b == c:
    print(-1)
    exit()

  if a%2 == 1 or b%2 == 1 or c%2 ==1:
    break
  r += 1
  aa = (b+c)//2
  bb = (a+c)//2
  cc = (a+b)//2
  a,b,c = aa,bb,cc

print(r)
a,b,c=map(int,input().split())
e=a-c|c-b
print((e!=c%2)*(e&-e).bit_length()-1)
a,b,c = map(int,input().split())
if a == b and b == c and c == a:
    print(-1)
else:
    cnt = 0
    while(True):
        cnt += 1
        ta = b//2 + c //2
        tb = a//2 + c //2
        tc = a//2 + b //2
        if ta %2 == 1 or tb %2 == 1 or tc %2 == 1:
            break
        a,b,c = ta,tb,tc
    print(cnt)
A,B,C = map(int, input().split())
ans = 0 
while 1:
  if {A,B,C} == {(B+C)//2,(C+A)//2,(A+B)//2}:
    print(-1)
    break
  if (A%2,B%2,C%2) == (0,0,0):
    ans += 1
    A,B,C = (B+C)//2,(C+A)//2,(A+B)//2
  else:
    print(ans)
    break
A,B,C = map(int,input().split(' '))
num = 0
if A == B == C:
    print(-1)
else:
    while A % 2 == 0 and B % 2 == 0 and C % 2 == 0:
        A_c = A
        B_c = B
        C_c = C
        A = B_c /2 + C_c / 2
        B = A_c / 2 + C_c /2
        C = A_c /2 + B_c / 2
        num += 1
    print(num)
A,B,C = map(int,input().split())
cou = 0
if(A % 2 == 1 or B % 2 == 1 or C % 2 == 1):
  print("0")
while(cou < 10*7):
  cou += 1
  a = A
  b = B
  c = C
  A = b/2 + c/2
  B = a/2 + c/2
  C = a/2 + b/2
  if(A % 2 == 1 or B % 2 == 1 or C % 2 == 1):
    print(str(cou))
    exit()
  else:
    pass
print("-1")
A, B, C = map(int, input().split())
S = A+B+C

k = 0
while True:
    if A==B==C:
        k = -1
        break
    k += 1
    An = (B + C)//2
    Bn = (A + C)//2
    Cn = (B + A)//2
    A = An 
    B = Bn 
    C = Cn     
    print(A,B,C)
    if A%2==1 or B%2==1 or C%2==1 or min([A,B,C])<1:
        break

print(k)
# おっぱっぴー

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

if A == B == C:
    print(-1)
for i in range(10000):
    if A % 2 != 0 or B % 2 != 0 or C % 2 != 0:
        print(i)
        break
    A, B, C = B/2+C/2, A/2+C/2, A/2+B/2
A,B,C = map(int, input().split())
A_first,B_first,C_first = A,B,C


result = 0
for i in range(10**9):
    if A % 2 == 1 or B % 2 == 1 or C // 2 == 1:
        break
    a = A // 2
    b = B // 2
    c = C // 2
    A = b + c
    B = a + c
    C = a + b
    if A == A_first and B == B_first and C == C_first:
        result = -1
        break
    result += 1   
print(result)
A,B,C=map(int, input().split())
if A==B and B==C:
  print(-1)
  exit(0)
cnt=0
while True:
  A=A//2
  B=B//2
  C=C//2
  flgA=A%2==0
  flgB=B%2==0
  flgC=C%2==0
  A=B+C
  B=A+C
  C=A+B
  if [flgA, flgB, flgC].count(True) ==2 or [flgA, flgB, flgC].count(False) ==3:
    break
  else:
    cnt+=1
print(cnt)
A,B,C = list(map(int,input().split()))
if A==B==C:
    print(-1)
else:
    count = 0
    while not A%2 and not B%2 and not C%2:
        A,B,C = (B+C)/2,(A+C)/2,(A+B)/2
        if A==int(A) and B==int(B) and C == int(C):
            A = int(A)
            B = int(B)
            C = int(C)
        count += 1
    print(count)
import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(rs())
def rs_(): return [_ for _ in rs().split()]
def ri_(): return [int(_) for _ in rs().split()]

import numpy as np
a = np.array(ri_())
ans = 0
while True:
    if a[0] == a[1] and a[1] == a[2]:
        ans = -1
        break
    ans += 1
    a = (sum(a) - a) // 2
    if np.any(a % 2 == 1):
        break
print(ans)
a,b,c = map(int,input().split())
aa=0
bb=0
cc=0
cnt = 0
e = True
if a%2!=0 or b%2!=0 or c%2!=0:
	print(0)
else:
	while e:
		if a%2!=0 or b%2!=0 or c%2!=0:
			e=False
		elif a==b==c:
			cnt=-1
			e=False
		else:
			aa=(b+c)/2
			bb=(a+c)/2
			cc=(a+b)/2
			cnt+=1
			a=aa
			b=bb
			c=cc
print(cnt)
a,b,c = map(lambda x:int(x),input().split())
if a==b==c:
  print(-1)
elif a%2==1 or b%2==1 or c%2==1:
  print(0)
else:
  at=bt=ct = -1
  while a%2==0:
    a/=2
    at+=1
  while b%2==0:
    b/=2
    bt+=1
  while c%2==0:
    c/=2
    ct+=1
  print(at+bt+ct)
a, b, c = map(int, input().split())
if a == 1 and b == 1 and c == 1:
    print(0)
if a == b and b == c:
    print(-1)
    exit()
cnt = 0
while a % 2 == 0 and b % 2 == 0 and c % 2 == 0:
    a, b, c = b//2+c//2, c//2+a//2, a//2+b//2
    cnt += 1
print(cnt)
# おっぱっぴー

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

if A == B == C:
    print(-1)
for i in range(1000):
    A, B, C = B/2+C/2, A/2+C/2, A/2+B/2

    if A % 2 != 0 or B % 2 != 0 or C % 2 != 0:
        print(i+1)
        break
import sys

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

if A == B and B == C:
    print('-1')
    sys.exit()

count = 0
while True:
    a = (A+B)/2
    b = (C+A)/2
    c = (A+B)/2
    count += 1
    if a == b and b == c:
        print('-1')
        sys.exit()
    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        break
    A = a
    B = b
    C = c

print(count)
a,b,c=map(int,input().split())
if a==b==c and a%2==0:
    print(-1)
    exit()
cnt=0
while True:
    a,b,c = (b+c)//2,(a+c)//2,(a+b)//2
    cnt+=1
    if a%2 != 0 or b%2 != 0 or c%2 !=0:
        break
print(cnt)
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)

A, B, C = map(int, readline().split())

if A == B and B == C:
    print(-1)
    exit()

ans = 0
while True:
    if A % 2 == 1 or B % 2 == 1 or C % 2 == 1:
        break
    half_A = A // 2
    half_B = B // 2
    half_C = C // 2

    A += half_B + half_C
    B += half_A + half_C
    C += half_A + half_B
    ans += 1

print(ans)
a, b, c = map(int, input().split())
za = a
zb = b
zc = c

d = 0

if a == b == c:
    print(-1)
    exit()

while True:
    a = int(zb / 2) + int(zc / 2)
    b = int(za / 2) + int(zc / 2)
    c = int(za / 2) + int(zb / 2)

    za = a
    zb = b
    zc = c

    d += 1
    print(a,b,c)

    if a % 2 != 0 or b % 2 != 0 or b % 2 != 0:
        print(d)
        exit()
a,b,c=map(int,input().split())
count=0
if a==b==c:
    print(-1)
else:      
    while True:
        a1=a//2
        b1=b//2
        c1=c//2
        if (a%2==0 and b%2==0 and c%2==0):
            count+=1
            a=b1+c1
            b=a1+c1
            c=a1+b1
        else:
            print(count)
            break
a,b,c = map(int, input().split())
for i in range(10**6):
  temp1 = a
  temp2 = b
  temp3 = c
  a = int((temp2+temp3)/2)
  b = int((temp1+temp3)/2)
  c = int((temp1+temp2)/2)
  if a % 2 != 0 or b % 2 != 0 or c % 2 != 0:
    break
if i == 10**6 - 1:
  print(-1)
else:
  print(i+1)
A,B,C = map(int,input().split())

if A == B == C: 
  print(-1)
else:
  c = 0
  while A % 2 == 0 and B % 2 == 0 and C % 2 == 0:
    ba = A
    bb = B
    bc = C
    A = (bb + bc)//2
    B = (ba + bc)//2
    C = (ba + bb)//2
    c+=1
  print(c)
*a, = map(int,input().split())
a = [bin(abs(a[i+1]-a[i]))[::-1].find('1') for i in range(2)]
print(max(a) if a[0]*a[1]<0 else min(a))
a,b,c = tuple(map(int,input().split()))

ans = 0
while True:
  if len(set((a,b,c)))<3:
    print(-1)
    break
  if a%2==0 and b%2==0 and c%2==0:
    a,b,c = b//2+c//2,c//2+a//2,a//2+b//2
    ans+=1
  else:
    break
print(ans)
a, b, c = map(int,input().split())

if a==b==c:
    print(-1)
    exit()

times=0
while a%2==0 and b%2==0 and c%2==0:
    times+=1
    a_=a//2
    b_=b//2
    c_=c//2
    a=b_+c_
    b=a_+c_
    c=a_+b_

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

Flag = True
count = 0
while Flag:
    if A == B == C:
        Flag = False
        count = -1
        continue
    if A % 2 ==1 or B % 2==1 or C % 2 ==1:
        Flag = False
        continue
    A_ = B // 2 + C //2
    B_ = A // 2 + C //2
    C_ = A // 2 + B //2
    A,B,C = A_,B_,C_
    count += 1
print(count)
a, b, c = map(int, input().split())

for i in range(3):
    w_a = a / 2
    w_b = b / 2
    w_c = c / 2

    a = w_b + w_c
    b = w_a + w_c
    c = w_b + w_a

    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        print(i + 1)
        exit(0)
else:
    print(-1)
a, b, c=map(int,input().split())
A,B,C = a,b,c
ans = 0
while(a%2==0 and b%2==0 and c%2==0):
  if(A==B==C):break
  A,B,C = a,b,c
  a = B//2 + C//2
  b = A//2 + C//2
  c = A//2 + B//2
  ans += 1
print(ans) if(ans) else print(-1)
A,B,C= map(int,input().split())

if A==B==C:
    print('-1')
else:
    cnt = 0

    flag = True
    while flag:
        A, B, C = (B+C)/2, (A+C)/2, (A+B)/2
        cnt += 1
        if A%2==0 and B%2==0 and C%2==0:    
            continue
        else:
            flag = False

    print(cnt)
nums = map(int, input().split())
nums = sorted(nums)
A, B, C = nums

if A == B and B == C:
    print(-1)
    exit()

count = 0
while True:
    if A % 2 != 0 or B % 2 != 0 or C % 2 != 0:
        print(count)
        exit()

    newA = (A + B) // 2
    newB = (B + C) // 2
    newC = (C + A) // 2
    A = newA
    B = newB
    C = newC
    count += 1
a,b,c=map(int,input().split())
if a==b==c and a%2==0:
    print(-1)
    exit()
cnt=0
while True:
    x=b/2+c/2
    y=a/2+c/2
    z=a/2+b/2
    a,b,c = x,y,z
    cnt+=1
    if a%2 != 0 or b%2 != 0 or c%2 !=0:
        break
print(cnt)
A,B,C = map(int, input().split())

def even(a):
	if a % 2 == 0:
		return True
	else:
		return False

if A == B and B == C:
	print("-1")
else:
	cnt = 0
	while even(A) and even(B) and even(C):
		tmp1, tmp2, tmp3 = A,B,C
		A = (tmp2+tmp3) // 2
		B = (tmp3+tmp1) // 2
		C = (tmp1+tmp2) // 2
		cnt += 1
	print(cnt)
# agc014_a.py]
A, B, C = map(int,input().split())
cnt = 0
inf = 15
for i in range(inf):
    if A%2==0 and B%2==0 and C%2==0: 
        a = (B+C)//2
        b = (A+C)//2
        c = (B+A)//2
        A = a
        B = b
        C = c
        cnt += 1
    else:
        break
if cnt == inf:
    cnt = -1
print(cnt)
a,b,c = map(int,input().split())

if a==b==c:
    print(-1)
else:
    ans = 0
    while True:
        if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
            break
        a,b,c = (b/2+c/2), (a/2+c/2), (a/2+b/2)
        ans += 1
    print(ans)
import sys
import numpy as np
sys.setrecursionlimit(10 ** 7)

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

cookies = np.array(lr())
if len(set(cookies)) == 1:
    print(-1)
    exit()
if any(cookies&1):
    print(0)
    exit()
count = 0
half_total = cookies.sum() // 2
while True:
    cookies = half_total - cookies//2
    count += 1
    if any(cookies&1):
        print(count)
        break
    if count == 10000:
        print(-1)
        exit()
A,B,C = map(int,input().split())
ans = 0
if A == B == C or A%2 != 0 or B%2 != 0 or C%2 != 0:
  ans = -1
else:
  while A%2 == 0 and B%2 == 0 and C%2 == 0:
    A,B,C = B/2+C/2,A/2+C/2,A/2+B/2
    ans += 1
print(ans)
import sys

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

if A == B and B == C:
    print('-1')
    sys.exit()

count = 0
while True:
    a = (A+B)/2
    b = (C+A)/2
    c = (A+B)/2
    count += 1
    if a == b and b == c and a % 2 == 0 and b % 2 == 0 and c % 2 == 0:
        print('-1')
        sys.exit()
    if a % 2 == 1 or b % 2 == 1 or c % 2 == 1:
        break
    A = a
    B = b
    C = c

print(count)
a,b,c=map(int,input().split())
e=a-b|b-c
print(len(bin(e&-e))-3or~-e^b&1)
a,b,c=map(int,input().split())
if a%2==1 or b%2==1 or c%2==1:
  print(-1)
elif a==b==c:
  print(0)
else:
  ans=0
  while a%2==0 and b%2==0 and c%2==0:
    ans+=1
    a1=(b+c)//2
    b1=(c+a)//2
    c1=(a+b)//2
    a=a1
    b=b1
    c=c1
  print(ans)
a,b,c=map(int,input().split())
e=a-b|b-c
print(len(bin(e&-e))-3or~b%-2^-e)
A,B,C=map(int, input().split())
if A==B and B==C:
  print(-1)
  exit(0)

cnt=0
ctr=0
while True:
  A=A//2
  B=B//2
  C=C//2
  flgA=A%2==0
  flgB=B%2==0
  flgC=C%2==0
  Aa=B+C
  Bb=A+C
  Cc=A+B
  A=Aa
  B=Bb
  C=Cc

  cnt+=1
  ctr+=1
  if [flgA, flgB, flgC].count(True) !=3 or ctr >=100:
    break

print(cnt)
a,b,c = tuple(map(int,input().split()))
if len(set((a,b,c)))<3:
  print(-1)
else:
  ans = 0
  while True:
    if a%2==0 and b%2==0 and c%2==0:
      a,b,c == b//2+c//2,c//2+a//2,a//2+b//2
      ans+=1
    else:
      break
    if len(set((a,b,c)))<3:
      print(-1)
      break
      
  print(ans)
a,b,c = map(int,input().split())
i = 0

while a % 2 == 0 and b % 2 == 0 and c % 2 == 0 and i < 10 ** 5:
    x = a // 2
    y = b // 2
    z = c // 2
    a = a // 2
    b = b // 2
    c = c // 2
    a += y // 2 + z // 2
    b += x // 2 + z // 2
    c += x // 2 + y // 2
    i += 1

if i < 10 ** 5:
    print(i)
else:
    print(-1)
#13
a,b,c = map(int,input().split())
cnt = 0
if  a%2 == 1 or b%2 == 1 or c%2 == 1:
    print('0')

while a%2 == b%2 == c%2 == 0:
    if a==b==c:
        print('-1')
        break
    else:
        a,b,c = b//2+c//2,c//2+a//2,a//2+b//2
        cnt+=1

print(cnt)
a,b,c=map(int,open(0).read().split())

def is_integer(x):
    tf=1
    for i in range(3):
        tf*=float.is_integer(l[i])
    return tf

if a==b==c:
    print(-1)
else:
    num=-1
    tf=1
    while tf!=0:
        l=[(b+c)/2,(c+a)/2,(a+b)/2]
        tf=is_integer(l)
        num+=1
        l=[(l[1]+l[2])/2, (l[2]+l[0])/2, (l[0]+l[2])/2]
    else:
        print(num)
a,b,c=map(int,input().split())
e=a-b|b-c
print(len(f'{e&-e:b}')-(e!=b&1))
A, B, C = map(int, input().split())
if A == B and B == C:
    print(-1)
    exit()

count = 0
while (A % 2, B % 2, C % 2) == (0, 0, 0):
    A, B, C = (B + C) // 2, (A + C) // 2, (A + B) // 2
    count += 1

print(count)
A, B, C = map(int, input().split())
if A == B == C:
  print(-1)
else:
  count = 0
  while 0 == A % 2 == B % 2 == C % 2:
    A = (B + C) // 2
    B = (C + A) // 2
    C = (A + B) // 2
    count += 1
  print(count)
A, B, C = map(int, input().split())
res = 0

if A == B == C:
  res = -1
else:
  while all([A % 2 ==0, B % 2 == 0, C % 2 ==0]):
    at, bt, ct = A/2, B/2, C/2
    A = bt + ct
    B = at + ct
    C = at + bt
    res += 1

print(res)
# おっぱっぴー

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

if A == B == C:
    print(-1)
else:
    ans = 0
    while A % 2 == B % 2 == C % 2 == 0:
        A, B, C = B//2+C//2, A//2+C//2, A//2+B//2
        ans += 1

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

if A==B and B==C:
  print(-1)
else:
  count = 0
  while True:
    count+=1
    A_tmp = B/2 + C/2
    B_tmp = A/2 + C/2
    C = A/2 + B/2
    A = A_tmp
    B = B_tmp
    if A%2==1 or B%2==1 or C%2==1:
      break
  print(count)
A,B,C=map(int,input().split())
count=0
if A==B and A==C:
  print("-1")
  exit()
elif A%2==1 or B%2==1 or C%2==1:
  print("0")
  exit()
while True:
  a,b,c=A/2,B/2,C/2
  A,B,C=b+c,a+c,a+b
  count+=1
  if A%2==1 or B%2==1 or C%2==1:
    break
print(count)
A, B, C = input().split(" ")
A, B, C = int(A), int(B), int(C)
ans = 0
while True:
    if A == B and B == C:
        print(-1)
        break
    if A % 2 != 0 or B % 2 != 0 or C % 2 != 0:
        print(ans)
        break
    A, B, C = (B + C) / 2,  (C + A) / 2, (A + B) / 2
    ans += 1