Thor vs Frost Giants

Problem Name:
Thor vs Frost Giants
Site:Spoj
Links:
Tags:
Problem setters: