#include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); int a[n], b[m]; for (int i = 0; i < n;&n...