asdf=input()
x1,y1,r1,x2,y2,r2=map(int,input().split())
a=float((((x1-x2)**2)+((y1-y2)**2))**0.5)
b=int(r1+r2)
c=int(abs(r1-r2))
if a==0:
if c==0:
print(-1)
else:
print(0)
elif a!=0:
if a>b:
print(0)
elif a==b:
print(1)
elif c<a<b:
print(2)
elif a==c:
print(1)
elif a<c:
print(0)
가르쳐주세요 행님들
일단 여러번 못함
asdf받아놓고 어따쓰게
아하
진차루 감사합니다용 맞았어용 ㅠㅠㅠㅠ