#include <bits/stdc++.h>
int main() {
  long long n, m, k;
  scanf("%I64d %I64d %I64d", &n, &m, &k);
  long long temp = (k + 1) / 2, temp2 = temp % m, temp1 = temp / m + 1;
  if (temp2 == 0) {
    temp2 = m;
    temp1--;
  }
  printf("%I64d %I64d ", temp1, temp2);
  if (k % 2)
    printf("L");
  else
    printf("R");
  return 0;
}
