#include using namespace std; void gets(int *a, int n) { char buf[64]; fgets(buf, sizeof(buf), stdin); char *b = buf; for (int i = 0; i < n; i++) { if (1 != sscanf(b, "%d", a + i)) break; while (*b != '\0' && !isspace(*b)) b++; while (*b != '\0' && isspace(*b)) b++; } } int main(int argc, char **argv) { int N; scanf("%d\n", &N); int A[1000]; gets(A, N); sort(A, A + N); if (N % 2 == 1) { printf("%d\n", A[N/2]); } else { printf("%.1f\n", (double)(A[N/2-1]+A[N/2])/2.0f); } return 0; }