#include using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int ans = 1/(B-A) * 1/(D-C); cout << ans; }