Greg and Friends

Problem Name:
Greg and Friends
Site:CodeForces
Links:
Tags:
Problem setters: