#include using namespace std; int n; int main(){ cin>>n; int mid=((1<