import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
double[] a = new double[n];
for (int i = 0; i < n; i++) {
double rand = Math.random();
a[i] = rand <= 0.5 ? rand*(-40) : rand*40;<br> }
double max = -100, min = 100;
int maxi = -1, mini = -1;
for (int i = 0; i < a.length; i++) {
if (a[i] > max) {
max = a[i];
maxi = i;
}
if (a[i] < min) {
min = a[i];
mini = i;
}
}
double temp = a[maxi];
a[maxi] = a[mini];
a[mini] = temp;
}
}