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

int main() {
    int x;
    cin >> x;

    
    cout << x - x % 2 << endl;

   
    cout << x + (x % 2) << endl;

    
    cout << x - 1 - (1 - x % 2) << endl;
     
    cout << x + 1 + (x % 2 - 1) << endl;

    return 0;
}
