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