import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc=new Scanner(System.in); String line; line=sc.nextLine(); int result; result=(int)((316-52+52*Long.parseLong(line))/1000000000); System.out.print(result); result=(int)((316-52+52*Long.parseLong(line))%1000000000); System.out.println(result); } }