#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  t = 1;
  while (t--) {
    long long n, m, k, r, d, temp;
    cin >> n >> m >> k;
    m *= 2;
    temp = k % m;
    temp = (temp == 0 ? m : temp);
    r = ceil(k / (m * 1.0));
    d = ceil(temp / 2.0);
    if (k % 2) {
      cout << r << " " << d << " "
           << "L\n";
    } else {
      cout << r << " " << d << " "
           << "R\n";
    }
  }
  return 0;
}
