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