#include <bits/stdc++.h>
int main() {
  int j, n, m, k, y, x, i = 1;
  scanf("%d%d%d", &n, &m, &k);
  y = m * 2;
  j = m;
  while (k > y) {
    y = y + m * 2;
    i++;
  }
  if (k % 2 == 0) {
    x = i * m * 2;
    while (k < x) {
      x = x - 2;
      j--;
    }
    printf("%d %d R\n", i, j);
  } else {
    x = i * m * 2 - 1;
    while (k < x) {
      x = x - 2;
      j--;
    }
    printf("%d %d L\n", i, j);
  }
  return 0;
}
