#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
int main() {
  double a;
  while (cin >> a) {
    int ans = a / 3 + 0.5 + eps;
    cout << ans / 12 << ' ' << ans - (ans / 12) * 12 << endl;
  }
}
