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