#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main() {
  cin >> n >> m >> k;
  if ((k + 1) / 2 % m == 0) {
    cout << (k + 1) / 2 / m << " " << m;
  } else {
    cout << (k + 1) / 2 / m + 1 << " " << (k + 1) / 2 % m;
  }
  if (k % 2 == 0) {
    cout << " "
         << "R";
  } else {
    cout << " "
         << "L";
  }
  return 0;
}
