#include<stdio.h> #include<math.h> int main(){ int a, b; while(scanf("%d %d", &a, &b) != EOF){ int i = 0, cnt = 0,...