Drinking to turn red

Problem Name:
Drinking to turn red
Site:CodeForces
Links:
Tags:
Problem setters: