#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int INF = 2000000007;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int Rid = k / (m * 2);
  k %= (m * 2);
  if (k == 0) {
    cout << Rid << " " << m << " R";
    return 0;
  } else {
    cout << (Rid + 1) << " ";
  }
  Rid = k / 2;
  k %= 2;
  if (k == 0) {
    cout << Rid << " R";
  } else {
    cout << Rid + 1 << " L";
  }
  return 0;
}
