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