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