cho.sh
Notes
Loading...

Least Common Multiple of at Least Three Numbers

Time limit

2s

Memory limit

128 MB

Problem

Five distinct positive integers are given. Find the smallest positive integer that is divisible by at least three of the five given numbers.

Input

The first line contains five distinct positive integers separated by spaces. Each integer is at most 100.

Output

Print the smallest positive integer that is divisible by at least three of the five given numbers.