#include using namespace std; int main() { long long n,a=0,b=0; cin >> n; vector>rotti; rotti.push_back(make_pair(1,0)); rotti.push_back(make_pair(0,1)); rotti.push_back(make_pair(-1,0)); rotti.push_back(make_pair(0,-1)); for(int i=0;i