#include <iostream>
#include <iomanip>
using namespace std;

int main(){

    double n,m,d;
    cin >> n >> m >> d;
    cout << fixed << setprecision(12) <<(d==0?1:2)*(n-d)*(m-1)/n/n << endl;

    return 0;
}
