#include <iostream> using namespace std; int main() { int a; while (cin >> a ) { if(a%2==1)cout<<"0 0"<<endl; else{ int maxx=a/2; int minn=a/4; int remainder=a%4; minn+=(remainder/2); cout<<minn<<" "<<maxx<<endl; } } }