#include using namespace std; int main() { int a,b,c,d,e; cin >> a >> b >> c >> d >> e; int count=0; for(int i=0;i<(a+b)*(c+d);i++){ if(i%(a+b)