//土尔逊Torson 编写于2023/05/22 #define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<cstdio> using namespace std; int main() { int a; while (scanf("%d", &a) != EOF) { int minimum = 0; int maxmum = 0; if (a % 2 == 0) { //偶数才有解 minimum = a / 4 + (a % 4) / 2; maxmum = a / 2; } printf("%d %d\n", minimum, maxmum); } system("pause"); return EXIT_SUCCESS; } // 64 位输出请用 printf("%lld")