#include <iostream>
using namespace std;
int main() {
// Citirea laturilor triunghiului
int a, b, c;
cin >> a >> b >> c;
// Verificarea dacă triunghiul este echilateral
bool esteEchilateral = (a == b && b == c);
// Verificarea dacă triunghiul este isoscel (dar nu echilateral)
bool esteIsoscel = ((a == b || a == c || b == c) && !esteEchilateral);
// Verificarea dacă triunghiul este dreptunghic
// Sortăm laturile manual pentru a le face pe a <= b <= c
if (a > b) swap(a, b);
if (b > c) swap(b, c);
if (a > b) swap(a, b);
// Aplicăm teorema lui Pitagora: c^2 = a^2 + b^2
bool esteDreptunghic = (c * c == a * a + b * b);
// Afișăm rezultatele
cout << esteEchilateral << " " << esteIsoscel << " " << esteDreptunghic << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgLy8gQ2l0aXJlYSBsYXR1cmlsb3IgdHJpdW5naGl1bHVpCiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKCiAgICAvLyBWZXJpZmljYXJlYSBkYWPEgyB0cml1bmdoaXVsIGVzdGUgZWNoaWxhdGVyYWwKICAgIGJvb2wgZXN0ZUVjaGlsYXRlcmFsID0gKGEgPT0gYiAmJiBiID09IGMpOwoKICAgIC8vIFZlcmlmaWNhcmVhIGRhY8SDIHRyaXVuZ2hpdWwgZXN0ZSBpc29zY2VsIChkYXIgbnUgZWNoaWxhdGVyYWwpCiAgICBib29sIGVzdGVJc29zY2VsID0gKChhID09IGIgfHwgYSA9PSBjIHx8IGIgPT0gYykgJiYgIWVzdGVFY2hpbGF0ZXJhbCk7CgogICAgLy8gVmVyaWZpY2FyZWEgZGFjxIMgdHJpdW5naGl1bCBlc3RlIGRyZXB0dW5naGljCiAgICAvLyBTb3J0xINtIGxhdHVyaWxlIG1hbnVhbCBwZW50cnUgYSBsZSBmYWNlIHBlIGEgPD0gYiA8PSBjCiAgICBpZiAoYSA+IGIpIHN3YX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