https://www.luogu.com.cn/problem/P5710
#include <iostream>
using namespace std;
int main()
{
int n(0),a(0),b(0),c(0),d(0),b1(0),b2(0);
cin >> n;
if (n%2 == 0)
b1 = 1;
if (n>4 && n <= 12)
b2 = 1;
b1+=b2;
if (2 == b1)
{
a = 1;
b = 1;
}
else if (1 == b1)
{
b = 1;
c = 1;
}
else
{
d = 1;
}
cout << a << ' ' << b << ' ' << c << ' ' << d << endl;
return 0;
}