#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)(s); i < (int)(e); ++i) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); ll A, B; cin >> A >> B; if (A == 0) { cout << 0 << '\n'; return 0; } if (A*B < 0) cout << '-'; if (A < 0) A *= -1; if (B < 0) B *= -1; cout << A / B; if (A % B == 0) { cout << '\n'; return 0; } cout << '.'; A %= B; while (A > 0) { A *= 10; cout << A / B; A %= B; } cout << '\n'; }