#include <iostream> #include <cstdio> using namespace std; int main() { int a; while (scanf("%d", &a) != EOF) { int minimum = 0; int maximum = 0; if (a % 2 == 0) { minimum = a / 4 + (a%4)/2; maximum = a / 2; } cout << minimum << " " << maximum << endl; } return 0; }