#include <cstdio> int main(){ int num, cnt, sh, yu; while(EOF != scanf("%d", &num)){ cnt = 0; &nb...