import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = 0; long numerator = 1; long denominator = 1; n = sc.nextLong(); numerator = sc.nextLong(); for(long i=1;i= 0&&denominator < 0){ numerator*=-1; denominator*=-1; } System.out.println(numerator+" "+denominator); } static long calculateGcf(long m, long n) { long s = 0; while(m % n != 0) { s = m; m = n; n = s % n; } return n; } }