e-olymp
Competitions

PP2. Week 7: April 19 - 25

Java ArithmeticException

Two integers a and b are given. Find a / b (integer division). Catch exception if b = 0. Use try-catch in your program.

Input

Each line contains two integers a and b.

Output

If b = 0, print message Division by zero. Otherwise print a / b.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 0
9 3
7 0
7 1
18 9
Output example #1
Division by zero
3
Division by zero
7
2
Author Mykhailo Medvediev