#include <bits/stdc++.h>
using namespace std;
int a, q, w, t;
int main() {
  cin >> a;
  q = a / 3;
  w = q / 12;
  cout << w << " ";
  if ((a - (w * 12 * 3)) % 3 == 0) {
    cout << ((a - (w * 12 * 3)) / 3);
    return 0;
  }
  t = (a - (w * 12 * 3)) / 3;
  if ((a - (w * 12 * 3)) - (t * 3) == 2) {
    cout << (t + 1);
    return 0;
  }
  if ((a - (w * 12 * 3)) - (t * 3) < 2) {
    cout << t;
    return 0;
  }
  if (a < 2) cout << "0";
}
