import java.util.Scanner;
public class A216{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int num = sc.nextInt();
System.out.println(f(num) + " " + g(num));
}
}
public static int f(int n){
return n == 1 ? 1 : n + f(n-1);
}
public static int g(int n){
return n == 1 ? 1 : g(n-1) + f(n);
}
}