#include <iostream> using namespace std; int minCal(int feet) { int min = feet / 4; if (feet % 4 == 2) min++; return min; } int main() { int feet; while (scanf("%d", &feet) != EOF) { int max, min; if (feet % 2 == 1) { min = 0, max = 0; } else { max = feet / 2; min = minCal(feet); } cout << min << " " << max; } return 0; }