#include <bits/stdc++.h>
using namespace std;
FILE *f, *g;
int n, m;
int main() {
  scanf("%d", &n);
  int a = n / 3;
  int b = n % 3;
  if (b == 2) a++;
  int c = a / 12;
  printf("%d ", c);
  a -= c * 12;
  printf("%d", a);
  scanf(" ");
}
