HELP PLEASE

https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1474

i am not getting understand this pls help me