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