#include <stdio.h> int main(void) { int array[500] = { 0 }; int num1, num2, length; scanf("%d", &length); for (int i = 0; i < length; i++) { scanf("%d %d", &num1, &am...