#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, p, min1, max1, min0, max0, n, m, k, r, d;
  string s;
  cin >> n;
  cin >> m;
  cin >> k;
  for (i = 0; i < n; i++) {
    min0 = i * m * 2;
    max0 = (i + 1) * 2 * m;
    if ((min0 < k) && (k <= max0)) {
      r = i + 1;
    }
  }
  p = k % (m * 2);
  if (p == 0) {
    d = m;
  } else {
    for (i = 0; i < m; i++) {
      min1 = i * 2;
      max1 = (i + 1) * 2;
      if ((min1 < p) && (p <= max1)) {
        d = i + 1;
      }
    }
  }
  if (k % 2 == 0)
    s = "R";
  else
    s = "L";
  cout << r << " " << d << " " << s << endl;
  return 0;
}
