#include <bits/stdc++.h>
using namespace std;
int main(){
  long long P;
  cin >> P;
  cout << 1 << ' ' << P << endl;
}