#include int main() { int N; std::cin >> N;std::cout << 1 << ' ' << N-1 << std::endl; return 0; }