// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.util.Arrays;
import java.util.Random;

public class PS7 {
    public static void main(String[] args) {
        Random rng = new Random()   ;
        int[] a = new int[100000000];
        for(int i = 0; i < a.length; i++) a[i] = rng.nextInt();
        long t1 = System.currentTimeMillis();
        Arrays.sort(a);
        long t2 = System.currentTimeMillis();
        System.out.println(t2 - t1);
    }
}
