Kleofáš and the n-thlon

Problem Name:
Kleofáš and the n-thlon
Site:CodeForces
Links:
Tags:
Problem setters: