#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, m, n;
  cin >> n >> m >> k;
  char s = k % 2 == 0 ? 'R' : 'L';
  if (k % 2) k++;
  k /= 2;
  int r = k % m == 0 ? k / m : (k + m) / m;
  int d = k % m == 0 ? m : k % m;
  cout << r << " " << d << " " << s << endl;
  return 0;
}
