#include <stdio.h> #include <iostream> #include <string.h> #include <string> #include <algorithm> #include <iomanip> using namespace std; int main() { int m; cin >> m; int min, max; min = m / 4; max = m / 2; if (m % 2 == 0) { cout << min << " " << max; } else cout << 0 << " " << 0; } |
Double click to view unformatted code.