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