Tag - A problem from a programming competition