#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n, num;
  cin >> m >> n >> num;
  int num2;
  if (num % (2 * n) == 0) {
    num2 = num / (2 * n);
    cout << num2 << " ";
  } else {
    num2 = num / (2 * n) + 1;
    cout << num2 << " ";
  }
  if (num % 2 == 0) {
    num2 = (num % (2 * n)) / 2;
    if (num2 == 0) {
      cout << n << " R\n";
      return 0;
    }
    cout << num2 << " R\n";
  } else {
    num2 = (num % (2 * n)) / 2 + 1;
    cout << num2 << " L\n";
  }
}
