#include<bits/stdc++.h>
using namespace std;
int a,b ;
int main(){
    while(1){
        int sou[2][1000]={};
        cin>>a;
        if(a==0)break;
        for(int q=0;q<a;q++){
            cin>>b;
            sou[0][b]=true;
        }
        for(int i=1;i<a*2+1;i++){
            if(!sou[0][i]){sou[1][i]=true;}
        }
        int aaa[2]={a,a};
        int no=0, cu=1;
        while(aaa[0]&&aaa[1]){
            for(;cu<a*2+1;cu++){
                if(sou[no][cu]){
                    aaa[no]--;
                    sou[no][cu]=false;
                    break;
                }
            }
            if(cu==2*a+1){cu=1;}
            no^=1;
        }
        cout<<aaa[1]<<"\n"<<aaa[0]<<endl;
    }
}