#include <bits/stdc++.h>
using namespace std;

int main(){
  long P;
  cin >> P;
  cout << P << " 1";
}