#include <bits/stdc++.h>
int main() {
  int r, d, l, n, m, k;
  char a;
  scanf("%d%d%d", &n, &m, &k);
  if (k % 2 == 1) {
    a = 1;
  } else
    a = 0;
  d = (((k - 1 + a) % (2 * m)) + 1) / 2;
  r = 1;
  l = 2 * d - a;
  while (l != k) {
    l += 2 * m;
    r++;
  }
  if (a == 1) {
    a = 'L';
  } else
    a = 'R';
  printf("%d\n%d\n%c", r, d, a);
  return 0;
}
