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