#include <stdio.h>

int main() {

int val = 0, a_cnt =0, b_cnt = 0, other_cnt = 0;

scanf("%d" , &val);


switch(val) {


...


return 0;

}