import java.io.BufferedInputStream; import java.util.*; /** * @author hum */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedInputStream(System.in)); int t = sc.nextInt(); double res = 0; int[] tt = new int[]{0, 60, 62, 65, 67, 70, 75, 80, 85, 90, 95}; int len = tt.length; for (int cas = 1; cas <= t; cas++) { int sum = sc.nextInt(); for (int i = 0; i < len; i++) { for (int j = 0; j < len; j++) { for (int k = 0; k < len; k++) { int z = sum - tt[i] - tt[j] - tt[k]; if (z < 0) { continue; } res = Math.max(res, get(tt[i], tt[j], tt[k], z)); } } } System.out.println((double) Math.round(res * 10) / 10); } } private static double get(int i, int j, int k, int z) { return getS(i) + getS(j) + getS(k) + getS(z); } private static double getS(int i) { if (i >= 95) { return 4.3; } else if (i >= 90) { return 4; } else if (i >= 85) { return 3.7; } else if (i >= 80) { return 3.3; } else if (i >= 75) { return 3; } else if (i >= 70) { return 2.7; } else if (i >= 67) { return 2.3; } else if (i >= 65) { return 2; } else if (i >= 62) { return 1.7; } else if (i >= 60) { return 1; } else { return 0; } } }