import java.util.*;import java.math.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}} import java.util.*; util.* java import java.math.*; math.* java class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}} Main public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}} main {Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}} Scanner S=new Scanner(System.in); S new Scanner(System.in) for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);} BigInteger a,b,c; BigInteger a a b b c; c S.hasNext() S.hasNext S System.out.println(c+" "+a.multiply(b).divide(c)) System.out.println(c+" "+a.multiply(b).divide(c)) System.out.println System.out System System.out c+" "+a.multiply(b).divide(c) c+" "+a.multiply(b).divide(c) c " " a.multiply(b).divide(c) a.multiply(b).divide a.multiply(b) a.multiply a b c {a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);} {a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);} a=S.nextBigInteger() a S.nextBigInteger() S.nextBigInteger S b=S.nextBigInteger() b S.nextBigInteger() S.nextBigInteger S c=a.gcd(b) c a.gcd(b) a.gcd a b String[]g g
import java.util.*;import java.math.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}}
