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

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

class A {
     private int x;
     
     public A(int x1) 
     {
     	this.x = x1;
     }
     
     public int compare(A other)
     {
     	return (this.x > other.x) ? 1 : (this.x == other.x ? 0 : -1);
     }
}

/* 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
	{
		A o1 = new A(12);
		A o2 = new A(13);
			
		System.out.println(o1.compare(o2));
	}
}