Playing with GCD

Problem Name:
Playing with GCD
Site:Spoj
Links:
Tags:
Problem setters: