#include <bits/stdc++.h>
int main() {
  long int n, m, k, p, g = 2, i = 1, lane = 1, desk = 1;
  scanf("%ld%ld%ld", &n, &m, &k);
  p = 2 * m;
  while (i < k) {
    i++;
    if (i % 2 != 0) {
      desk = desk + 1;
      if (desk > m) {
        desk = 1;
        lane = lane + 1;
      }
    }
  }
  if (k % 2 != 0)
    printf("%ld %ld L\n", lane, desk);
  else
    printf("%ld %ld R\n", lane, desk);
  return 0;
}
