#include using namespace std; using ll = long long; using P = pair; using T = tuple; #include using namespace atcoder; // using mint = modint998244353; // using mint = modint1000000007; #define rep(i, n) for(ll i = 0; i < n; i++) #define reps(i, l, r) for(ll i = l; i < r; i++) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); ll p; cin >> p; cout << 1 << " " << p << endl; return 0; }