#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n, m;
  cin >> n >> m >> k;
  int lane_number = ceil((double)k / (2 * m));
  int start = (lane_number - 1) * (2 * m);
  if (k % 2 == 0)
    start += 2;
  else
    start += 1;
  int desk = ((k - start) / 2) + 1;
  cout << lane_number << ' ' << desk << ' ';
  if (k % 2 == 0)
    cout << 'R';
  else
    cout << 'L';
}
