#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, n, m, k;
  char p;
  cin >> a >> b >> n;
  if (n % 2 == 0)
    p = 'R';
  else {
    p = 'L';
    n++;
  }
  n = n / 2;
  if (n % b == 0) {
    m = n / b;
    k = b;
  } else {
    m = n / b + 1;
    k = n % b;
  }
  cout << m << ' ' << k << ' ' << p << endl;
}
