#include <bits/stdc++.h>
int main() {
  long long n, m, k;
  std::cin >> n >> m >> k;
  long long column = k / (2 * m);
  long long rest = k % (2 * m);
  column += rest != 0;
  char pos = rest % 2 == 1 ? 'L' : 'R';
  long long row;
  if (rest == 0) {
    row = m;
  } else {
    row = rest / 2;
    if (rest % 2 == 1) {
      row++;
    }
  }
  std::cout << column << " " << row << " " << pos << std::endl;
  return 0;
}
