#include #include using namespace std; int a[110],n,x; int main() { while(scanf("%d%d",&n,&x),n|x) { for(int i=0; i