#include <bits/stdc++.h>
using namespace std;
int main()
{
int n; cin >> n;
int a[n];
for (auto &c : a) cin >> c;
sort(a, a + n);
printf("Outgoing #: %d\n", (int)ceil(n / 2.0));
printf("Introverted #: %d\n", n / 2);
cout << "Diff = " << accumulate(a + n / 2, a + n, 0) - accumulate(a, a + n / 2, 0);
return 0;
}