@@ -0,0 +1,622 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static long gcd(long a, long b) %7B%0A%0A        long tmp = a %25 b;%0A%0A        while (tmp != 0) %7B%0A%0A            a = b;%0A            b = tmp;%0A            tmp = a %25 b;%0A%0A        %7D%0A%0A        return b;%0A%0A    %7D%0A%0A    public static long lcm(long a, long b) %7B%0A%0A        return a * b / gcd(a, b);%0A%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (sc.hasNextInt()) %7B%0A%0A            long a = sc.nextLong();%0A            long b = sc.nextLong();%0A%0A            System.out.println(gcd(a, b) + %22 %22 + lcm(a, b));%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create 0005