#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
long long arr[N] = {0};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t = 1;
  while (t--) {
    long long a, b, c, d, n, m;
    cin >> n;
    cout << 1 << " " << n << "\n";
  }
}
