#include using namespace std; int main() { double S,K; cin >> S >> K; printf("%lf\n",S/1000+K+1000); // your code goes here return 0; }