#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main() {
  cin >> n >> m >> k;
  cout << k / (2 * m) + (k % (2 * m) != 0) << ' '
       << (k - (k / (2 * m) - (k % (2 * m) == 0)) * 2 * m) / 2 +
              (k - (k / (2 * m) - (k % (2 * m) == 0)) * 2 * m) % 2
       << ' ';
  k % 2 ? cout << "L" : cout << "R";
  puts("");
  return 0;
}
