#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, l, d, t;
  char c;
  cin >> n >> m >> k;
  if (k % (2 * m) == 0)
    l = k / (2 * m);
  else
    l = (k / (2 * m)) + 1;
  t = k % (2 * m);
  if (!t) t = 2 * m;
  if (t % 2)
    d = t / 2 + 1;
  else
    d = t / 2;
  if (k & 1)
    c = 'L';
  else
    c = 'R';
  cout << l << " " << d << " " << c << endl;
  return 0;
}
