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