#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  long long k;
  cin >> n >> m >> k;
  long long column = (k - 1) / (2 * m) + 1;
  long long row = (((k - 1) % (2 * m)) + 2) / 2;
  cout << column << " " << row << " " << ((k & 1) ? "L" : "R");
  return 0;
}
