只需注意奇数与偶数即可
#include<iostream>
using namespace std;
int main()
{
int n;
while(cin >> n){
if(n % 2 != 0)
cout << 0 << " " << 0 << endl;
else{
int minnum = (n / 4) + (n - n / 4 * 4) / 2;
int maxnum = (n / 2);
cout << minnum << " " << maxnum << endl;
}
}
}