#include <bits/stdc++.h>
using namespace std;
long long dp[100005], n, arr[100005], N;
int main() {
  ios_base::sync_with_stdio(false);
  int t;
  t = 1;
  while (t--) {
    long long i, j, w, h, count = 0, sum = 0, total = 0, k, T, breaks = 0, m;
    string s;
    cin >> n;
    cin >> m >> k;
    T = k / (m * 2);
    h = k - (2 * m) * (T);
    if (k % (2 * m) > 0) {
      T++;
    }
    cout << T << " ";
    if (h == 0) {
      cout << m << " ";
    } else
      cout << h / 2 + h % 2 << " ";
    if (h % 2 == 0) {
      cout << "R" << endl;
    } else {
      cout << "L" << endl;
    }
  }
}
