很简单的博弈
代码也很简单
#include <iostream>
#include <stdio.h>
#include<string.h>
#include<math.h>
#include <algorithm>
#define pi 3.1415926
using namespace std;
int main()
{
int m,n;
while(cin>>m)
{
if(m%2==1)
puts("0");
else
puts("1");
}
return 0;
}