import java.util.Scanner;
import java.util.Arrays;

public class Main{
    public static void  main(String args[]){
        Scanner scan = new Scanner(System.in);
        final int N = scan.nextInt();
        int[] scores = new int[N];
        
        for(int i = 0; i < N; i++){
            scores[i] = scan.nextInt();
        }
        
        Arrays.sort(scores);
        int max = scores[N-1];
        int min = scores[0];
        
        for(int i = 0; i < N; i++){
            scores[i] = (int)(1.0*(scores[i] - min) / (max - min) * 40 + 60);
        }
        for (int i : scores){
            System.out.print(i + " ");
        }
    }
}