#include <bits/stdc++.h>
using namespace std;
long long ans = 0, i, j, n, k, l, r, cur, sz, Max, d, a, b;
int main() {
  scanf("%ld", &n);
  cout << (n / 3) / 12 << " " << (n / 3) - (n / 3) / 12;
  return 0;
}
