#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long int n, m, a;
  cin >> n >> m >> a;
  long int colNum = ceil((double)a / (double)(2 * m));
  a -= (colNum - 1) * m * 2;
  long int rowNum = ceil((double)a / 2);
  a -= rowNum * 2;
  if (a == 0)
    cout << colNum << " " << rowNum << " R";
  else
    cout << colNum << " " << rowNum << " L";
  return 0;
}
