#include <bits/stdc++.h>
using namespace std;
long long n, m, k, t, e;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
  ;
  cin >> n >> m >> k;
  t = k / (2 * m);
  if (k % (2 * m) != 0) {
    t++;
    cout << t << " ";
    t--;
    k = k - t * (2 * m);
    e = k / 2;
    if (k % 2 == 0)
      cout << e << " R";
    else
      cout << e + 1 << " L";
  } else
    cout << t << " " << m << " R";
}
