/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Sorter<Integer> idSorter = new Sorter<>(new idComparator());
	}
	
	static class Sorter<T extends Comparable> {

        Comparator<T> comparator;
        int switches = 0,
            compares = 0;

        public Sorter(Comparator<T> comparator) {
            this.comparator = comparator;
        }

        public Sorter() {
            this.comparator = null;
        }

        protected int compare(T first, T second) {
            if (this.comparator == null) {
                int cmp = first.compareTo(second);
                this.compares++;
                return cmp;
            }
            // return was missing
            return 0;
        }
	}
	
	static class idComparator implements Comparator<Integer> {

        public int compare(Integer first, Integer second) {
            return first > second? 1: first == second? 0: 1;
        }
    }
    
    static class Person {}
}