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