#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  int nn, mm;
  char s = 'R';
  cin >> n;
  cin >> m;
  cin >> k;
  int dummy;
  if (k % 2 != 0) {
    k++;
    s = 'L';
  }
  k = k / 2;
  dummy = k / m;
  dummy++;
  nn = dummy;
  mm = k % m;
  if (k % m == 0) {
    nn--;
    mm = m;
  }
  cout << nn << " " << mm << " " << s;
  return 0;
}
