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