Sichuan University Programming Contest 2016 Preliminary

F: Easy Problem III