The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
Bernard 1483519913 1483523201
Joel 1483520440 1483523498
Lucas 1483521040 1483524254
#
Output
Joel 3058
Lucas 3214
Bernard 3288
Input
Bernard 1483519913 1483523201
Joel 1483520440 1483523498
Lucas 1483521040 1483524254
#