#include <bits/stdc++.h>
using namespace std;
long long n, x;
int main() {
  scanf("%ld", &n);
  x = n / 3;
  cout << (x + (n - x * 3 == 2)) / 12 << " "
       << (n / 3 + (n - x * 3 == 2)) - (x + (n - x * 3 == 2)) / 12 * 12;
  return 0;
}
