#include<cstdio> #include<algorithm> using namespace std; int main() { int n; int num[10100]; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", &num[i]);
sort(num, num + n); for (int i = 1; i < n; i++) { scanf("%d", &num[i]); num[0] = (num[0] + num[i]) / 2; } printf("%d", num[0]); return 0; }