Idiomatic Phrases Game

HDU - 1546