#include <bits/stdc++.h>
using namespace std;
void place(int lanes, int desks, int k) {
  for (int i = 1; i <= desks; i++) {
    for (int j = 1; j <= lanes; j++) {
      if (k == 2 * i + 2 * desks * (j - 1)) {
        cout << j << " " << i << " " << 'R';
        break;
      } else if (k == 2 * i + 2 * desks * (j - 1) - 1) {
        cout << j << " " << i << " " << 'L';
        break;
      }
    }
  }
}
int main() {
  int lanes, desks, k;
  cin >> lanes >> desks >> k;
  place(lanes, desks, k);
}
