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