#include <iostream>
#include <cmath>

using namespace std;

int main() {
  cout << std::isnan(42.0) << std::isinf(42.0);
}