#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, c, b, v, d, l, n;
  cin >> a >> b >> c;
  v = c / (b * 2);
  n = c % (b * 2);
  if (n > 0) {
    v += 1;
  }
  l = n / 2 + n % 2;
  if (l == 0) {
    l = b;
  }
  if (c % 2 == 0) {
    cout << v << " " << l << " " << 'R';
  } else
    cout << v << " " << l << " " << 'L';
}
