import java.util.Comparator;

public class Coin implements Comparable<Coin> {
	private double value;
	
	public Coin(double v) {
		value = v;
	}
	
	public double getValue() { return value; }
	
	public int compareTo(Coin c) {
		if (value > c.getValue()) {
			return 1;
		} else if (value < c.getValue()) {
			return -1;
		} else {
			return 0;
		}
	}
	
	// Override Object's toString method to print something meaningful
	public String toString() {
		return "" + value;
	}
}