#include <iostream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <climits>
using namespace std;

long long mod = 1000000007;

enum Triangle {
    TAM_GIAC_DEU = 1,
    TAM_GIAC_THUONG = 4,
    TAM_GIAC_CAN = 2,
    TAM_GIAC_VUONG = 3,
    TAM_GIAC_R = 5
};

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int a, b, c;cin >> a >> b >> c;
    int type = 0;
    if (a + b > c && a + c > b && b + c > a) {
        Triangle triangle;
        if (a == b && b == c) {
            triangle = Triangle::TAM_GIAC_DEU;
        }
        else if (a == b || a == c || b == c) {
            triangle = Triangle::TAM_GIAC_CAN;
        }
        else if ((a * a + b * b == c * c) || (b * b + c * c == a * a) || (c * c + a * a == b * b)) {
            triangle = Triangle::TAM_GIAC_VUONG;
        }
        else {
            triangle = Triangle::TAM_GIAC_THUONG;
        }
        cout << triangle;
    }
    else {
        cout << "INVALID";
    }
    
    return 0;
};
