#include using namespace std; int main() { int n; cin >> n; printf("%d %d",n/2,n/2+n%2); return 0; }