#include <stdio.h>

int main(){
    int i,a[i],n;
    scanf("%d",&n);
    while (n!=0){
        for (i=0;i<n;i++) {
        scanf("%d",&a[i]);
        }
        scanf("%d",&n);
    }
    return 0;
    
}