package yuki_coder; import java.util.Scanner; public class No_275 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i=0; ii; j--){ if(a[j] < a[j-1]){ int t = a[j]; a[j]=a[j-1]; a[j-1]=t; } } } if(n%2==1){ int b = (n+1)/2; System.out.println(a[b-1]); }else if(n%2==0){ double b = ((n+1.0)/2.0); int c = (int)((b - 0.5)-1); int d = (int)((b + 0.5)-1); double e = (a[c] + a[d])/2.0; System.out.println(e); } } }