#include <bits/stdc++.h>
using namespace std;
inline int in() {
  int x;
  scanf("%d", &x);
  return x;
}
int n, m, k;
int main() {
  n = in();
  m = in();
  k = in();
  int lane = k / (2 * m);
  int rem = k % (2 * m);
  if (rem == 0) {
    cout << lane << ' ' << m << ' ' << 'R' << endl;
  } else {
    int row = rem / 2;
    if (rem % 2) row++;
    cout << lane + 1 << ' ' << row << ' ';
    if (k & 1)
      cout << 'L' << endl;
    else
      cout << 'R' << endl;
  }
  return 0;
}
