import java.util.*;
public class baden
{
  public static void main(String args[])throws Exception
  {
      Scanner in=new Scanner(System.in);
      int n=in.nextInt();
      int foot,inch;
      inch=n/3;
      if((n-inch*3)==2)
      inch++;
      foot=inch/12;
      inch=inch%12;
      System.out.println(foot+" "  +inch);
  }
}
