#include<bits/stdc++.h> using namespace std; int main() { int n; scanf("%d",&n); if(n%4==0) { printf("%d %d",n/4,n/2); } else if(n%4==2) printf("%d %d",(n/4)+1,n/2); else printf("0 0"); return 0; }
Double click to view unformatted code.