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