#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;
}
