
import java.util.Scanner;

public class UseGCD
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);

        int z = Tools.gcd(24,36);
        System.out.println("GCD of 24 and 36 = " + z);
        
        int x = input.nextInt();
        int y = input.nextInt();
        
        z = Tools.gcd(x,y);
       
        System.out.println("GCD of " + x + 
                           " and " + y + " = " + z);
    }
}
