#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
  int n, m, k, d;
  char s;
  cin >> n >> m >> k;
  k--;
  int r = k / (m * 2) + 1;
  k %= m * 2;
  if (k % 2)
    s = 'R';
  else
    s = 'L';
  d = k / 2 + 1;
  cout << r << " " << d << " " << s;
}
