#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int kk = k % (2 * m);
  if (kk == 0) kk = 2 * m;
  cout << (k - 1) / (2 * m) + 1 << ' ' << (kk - 1) / 2 + 1 << ' ';
  if (k & 1)
    cout << 'L' << endl;
  else
    cout << 'R' << endl;
}
