import java.util.Scanner;


public class A125 {
    
    public static void main(String[] args) 
    {
        Scanner in = new Scanner(System.in);
        long n = Math.round(((double)in.nextInt()) / 3);
        System.out.println((n / 12) + " " + (n % 12));
    }

}
