#include<iostream>
#include<cstdio>
#include<algorithm>
#include<math.h>
using namespace std;
int main() {
	int N;
	while (cin >> N, N) {
		int card[201];
		int ba=0;
		for (int i = 0; i < 201; i++)
			card[i] = 0;
		for (int i = 0; i < N; i++) {
			int num;
			cin >> num;
			card[num]= 1;
		}
		int HPoint = N;
		int TPoint = N;
		int turn=1;
		while (TPoint&&HPoint) {
			int OK=0;
			for (int i = ba+1; i <= 2 * N; i++) {
				if (card[i] == 1 && turn == 1) {
					ba = i; HPoint--; card[i] = -1;  OK = 1; break;
				}
				else if (card[i] == 0 && turn == 0) {
					ba = i; TPoint--; card[i] = -1; OK = 1;break;
				}
			}
			if (OK == 0) ba = 0;
			if (turn == 0) turn = 1;
			else turn = 0;
		}
		cout << TPoint << endl << HPoint << endl;
	}
	return 0;
}
