import java.util.*;
public class a216
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt())
{
int number=sc.nextInt();
long fn[]=new long[number];
long gn[]=new long[number];
fn[0]=1;
gn[0]=1;
for(int i=1;i<fn.length;i++)
{
fn[i]=(i+1)+fn[i-1];
gn[i]=fn[i]+gn[i-1];
}
System.out.println(fn[fn.length-1]+" "+gn[gn.length-1]);
}
sc.close();
}
}