#include #include int main() { int a; std::cin >> a; std::experimental::optional n{a}; std::cout << 1 << " " << *n-1 << std::endl; return 0; }