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