#include <bits/stdc++.h>
int main(void) {
  int a, b, c;
  int sankaku, hisi;
  sankaku = hisi = 0;
  scanf("%d %d %d", &a, &b, &c);
  if ((a * a == b * b + c * c) || (b * b == a * a + c * c) ||
      (c * c == a * a + b * b)) {
    sankaku++;
  } else if ((a == b) || (a == c) || (b == c)) {
    hisi++;
  }
  printf("%d\n%d\n", sankaku, hisi);
  return (0);
}
