import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
 
 
 
public class yahya {
 
 
	  public static void main(String args[]) throws Exception {
	 		
		  Scanner s=new Scanner(System.in);
	    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    	String line=br.readLine();
	    	String[] p=line.split(" ");
	    	int x=Integer.parseInt(p[0]);
	        int j=x/36;
            System.out.print(j);
    int c=x%36;
int l;
    if(c%3==1){l=c/3;}
else{l=c/3+1;}
            System.out.print(l);

         
 
 
}}