Problem Description

Read two integers a and b. Compute gcd(a,b) using Euclid while loop and output it.

Input Format

One line: a b.

Output Format

One integer gcd.

Sample Test Case

Input:
48 18
Output:
6

Constraints

-10^18

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next