ac aoj 1138
code forces 280