#include int main(void) { int a[100]; int b[100]; int anew; int i,k; unsigned long x,l; while (1) { scanf("%d ",&k); if (k==0) break; for (i=0;i