简单贪心

#include<iostream>
using namespace std;
int main()
{
    int a;
    while(cin>>a)
    {
        if(a%2!=0)
            printf("0 0\n");    
        else
        {
            int max=a/2;
            int min=a/4;
            int remainder=a%4;
            min+=remainder/2;
            printf("%d %d\n",min,max);
        }
    } 
    return 0;
}