#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, m, k;
  cin >> n >> m >> k;
  int r = ceil(k / (2.0 * m));
  char c;
  if (int(k) % 2 == 1)
    c = 'L';
  else
    c = 'R';
  cout << r << " " << ceil((k - (r - 1.0) * 2.0 * m) / 2.0) << " " << c;
}
