#include<iostream> #include <iomanip> #include<string> using namespace std; int main(){ int m; cin>>m; char ch; int a, b; for(int i = 0; i < m; i++){ cin>>ch>>a>>b; if(ch == '+'){ cout<<a + b<<endl; }else if(ch == '-'){ cout<<a - b<<endl; }else if(ch == '*'){ cout<<a * b<<endl; }else if(ch == '/'){ if((a + 0.0) / b - (a / b) > 0){ cout<<fixed<<setprecision(2)<<(a + 0.0) / b<<endl; }else{ cout<<a / b<<endl; } } } }