#include using namespace std; using ll = long long; int main() { constexpr int bound = 1e9; ll A; cin >> A; assert( -bound <= A && A <= bound ); ll B; cin >> B; assert( -bound <= B && B <= bound && B != 0 ); if( ( A < 0 ) != ( B < 0 ) ){ cout << '-'; } A = abs( A ); B = abs( B ); cout << A / B; A %= B; if( A != 0 ){ cout << '.'; while( A != 0 ){ A *= 10; cout << A / B; A %= B; } } cout << "\n"; }