import java.io.*; public class Main { public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int a = Integer.parseInt(line); if(a % 2 == 0){ System.out.println("2 " + a/2); }else{ System.out.println("1 " + a / 1); } } }