Indiana Jones and the lost Soccer Cup

Problem Name:
Indiana Jones and the lost Soccer Cup
Site:CodeForces
Links:
Tags:
Problem setters: