1、
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
if(n%2==0&&n>4&&n<=12)
printf("1 1 0 0");
else if(n%2==0&&(n<=4||n>12))
printf("0 1 1 0");
else if(n%2!=0&&n>4&&n<=12)
printf("0 1 1 0");
else
printf("0 0 0 1");
return 0;
}