#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool esteEchilateral = (a == b && b == c);
bool esteIsoscel = ((a == b || a == c || b == c) && !esteEchilateral);
if (a > b) swap(a, b);
if (b > c) swap(b, c);
if (a > b) swap(a, b);
bool esteDreptunghic = (c * c == a * a + b * b);
cout << esteEchilateral << " " << esteIsoscel << " " << esteDreptunghic;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGJvb2wgZXN0ZUVjaGlsYXRlcmFsID0gKGEgPT0gYiAmJiBiID09IGMpOwogICAgYm9vbCBlc3RlSXNvc2NlbCA9ICgoYSA9PSBiIHx8IGEgPT0gYyB8fCBiID09IGMpICYmICFlc3RlRWNoaWxhdGVyYWwpOwogICAgaWYgKGEgPiBiKSBzd2FwKGEsIGIpOwogICAgaWYgKGIgPiBjKSBzd2FwKGIsIGMpOwogICAgaWYgKGEgPiBiKSBzd2FwKGEsIGIpOwogICAgYm9vbCBlc3RlRHJlcHR1bmdoaWMgPSAoYyAqIGMgPT0gYSAqIGEgKyBiICogYik7CiAgICBjb3V0IDw8IGVzdGVFY2hpbGF0ZXJhbCA8PCAiICIgPDwgZXN0ZUlzb3NjZWwgPDwgIiAiIDw8IGVzdGVEcmVwdHVuZ2hpYzsKICAgIHJldHVybiAwOwp9Cg==