#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream fin("stndard input");
  ofstream fout("standard output");
  int f, d, s;
  fin >> s;
  d = s / 3;
  f = d / 12;
  if (d >= 36) f++;
  d %= 12;
  if (s == 1) d = 0;
  if (s % 2 == 1) d++;
  fout << f << " " << d;
}
