#include <iostream>
using namespace std;
int check(int ar[])
{
if(ar[0] <= 0 || ar[1] <= 0 || ar[2] <= 0)
return -1;
//排序
for(int i = 2 ; i > 0 ; i--)
{
for(int m = 0 ; m < i ; m++)
{
if(ar[m] > ar[m+1])
{
int tmp = ar[m];
ar[m] = ar[m+1];
ar[m+1] = tmp;
}
}
}
//比對(正0,直角1,其它2,非三角-1)
if(ar[2] >= ar[0] + ar[1])
return -1;
else if((ar[2]^2) == (ar[0]^2) + (ar[1]^2))
return 1;
else if(ar[0] == ar[1] && ar[0] == ar[2])
return 0;
else
return 2;
}
int main() {
int arr[3] = {0, 0, 0};
cin >> arr[0] >> arr[1] >> arr[2];
cout << check(arr) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IGNoZWNrKGludCBhcltdKQp7CglpZihhclswXSA8PSAwIHx8IGFyWzFdIDw9IDAgfHwgYXJbMl0gPD0gMCkKCQlyZXR1cm4gLTE7CgkvL+aOkuW6jwoJZm9yKGludCBpID0gMiA7IGkgPiAwIDsgaS0tKQoJewoJCWZvcihpbnQgbSA9IDAgOyBtIDwgaSA7IG0rKykKCQl7CgkJCWlmKGFyW21dID4gYXJbbSsxXSkKCQkJewoJCQkJaW50IHRtcCA9IGFyW21dOwoJCQkJYXJbbV0gPSBhclttKzFdOwoJCQkJYXJbbSsxXSA9IHRtcDsKCQkJfQoJCX0KCX0KCS8v5q+U5bCNKOatozDvvIznm7Top5Ix77yM5YW25a6DMu+8jOmdnuS4ieinki0xKQoJaWYoYXJbMl0gPj0gYXJbMF0gKyBhclsxXSkKCQlyZXR1cm4gLTE7CgllbHNlIGlmKChhclsyXV4yKSA9PSAoYXJbMF1eMikgKyAoYXJbMV1eMikpCgkJcmV0dXJuIDE7CgllbHNlIGlmKGFyWzBdID09IGFyWzFdICYmIGFyWzBdID09IGFyWzJdKQoJCXJldHVybiAwOwoJZWxzZQoJCXJldHVybiAyOwp9CgppbnQgbWFpbigpIHsKCWludCBhcnJbM10gPSB7MCwgMCwgMH07CgljaW4gPj4gYXJyWzBdID4+IGFyclsxXSA+PiBhcnJbMl07Cgljb3V0IDw8IGNoZWNrKGFycikgPDwgZW5kbDsKCXJldHVybiAwOwp9