#include <iostream>
#include <iomanip>

using namespace std;

int main() {
    double n, m, d;
    cin >> n >> m >> d;
    cout << setprecision(15) << (d == 0 ? (m - 1) / n : 2 * (n - d) / (n * n) * (m - 1)) << endl;
}
