#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, f = 0, m = 0, a[200200], b[200200] = {0};
  cin >> n;
  if (n % 3 > 1) m++;
  m += n / 3;
  f = m / 12;
  m -= f * 12;
  cout << f << " " << m;
  return 0;
}
