#include using namespace std; int main(){ double n,m; cin>>n>>m; double p;cin>>p; double ans=0.0; if (n>m)swap(n,m); if (n==1){ if (m==1){ cout<