Uva 12917 Solution

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c;

while(cin >> a >> b >> c)
{
int r = c - a;
if(r < 0)
r = r * (-1);

if(b > r || a > c)
cout << "Hunters win!" << "\n";
else
cout << "Props win!" << "\n";
}

return 0;
}

Comments