#include <bits/stdc++.h>
using namespace std;
int main() {
  double n;
  cin >> n;
  double first, c;
  c = n / 3;
  first = c / 12;
  cout << floor(first) << " ";
  if (n >= 3) {
    cout << ceil(c - floor(first) * 12);
  } else {
    cout << 0;
  }
  return 0;
}
