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