<a href="https://codeforces.com/contest/1349/problem/A" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Orac and LCM</i></a>
Input Format
check the link
Output Format
check the link
Constraints
check the link
Example
Input
4 10 24 40 80
Output
40