#include <iostream.h>
int main()
{float v1, v2, D;
cout<<"Distanta intre cele orase";
cin>>D;
cout<<"Viteza lui Ion";
cin>>v1;
cout<<"Viteza lui Vasile";
cin>>v2;
cout<<"Se vor intilni peste "<<D/(v1+v2)<<" ore."<<endl;
cout<<"Se vor intilni la "<<D-v1*(D/(v1+v2))<<" km distanta de orasul lui Vasile";
return 0;
}