#include <stdio.h> int main() { int N = 0; int Even = 0; int Odd = 0; scanf("%d",&N); for(int i = 1;i<=N;i++) { if(i%2==0) { Even++; } else Odd++; } printf("%d %d",Odd,Even); return 0; }
#include <stdio.h> int main() { int N = 0; int Even = 0; int Odd = 0; scanf("%d",&N); for(int i = 1;i<=N;i++) { if(i%2==0) { Even++; } else Odd++; } printf("%d %d",Odd,Even); return 0; }