electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

a/b

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

Two numbers aaa and bbb are given. Output the result of dividing aaa by bbb without remainder.

Input Format

The first line contains two integers a and b, separated by a space. (−109≤a,b≤109)(-10^9 \le a, b \le 10^9)(−109≤a,b≤109).

Output Format

Output one integer - the answer.

Examples

Example 1
Input
15 4
Output
3
Example 2
Input
-3 2
Output
-1
Explanation

Dividing −3-3−3 by 222 gives us −1.5-1.5−1.5.

If you discard the fractional part, you get −1-1−1.

© 2026 Electicode. All rights reserved.