#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n;
  cin >> m;
  cin >> k;
  bool done = false;
  int num = 0;
  int lanes = 0;
  int desks = 0;
  int d = 0;
  while (num < k) {
    desks = 0;
    done = false;
    num += 2 * m;
    lanes++;
    while (done == false) {
      if (d >= num || d >= k) {
        done = true;
        break;
      }
      d += 2;
      desks++;
    }
  }
  cout << lanes << " " << desks << " ";
  if (k % 2 == 0) {
    cout << "R" << endl;
  } else
    cout << "L" << endl;
  return 0;
}
