P12166 [AOJ] We don't wanna work!
普及
题目描述

Example

Input

4
Durett 7
Gayles 3
Facenda 6
Daughtery 0
1
+ Mccourtney 2

Output

Mccourtney is not working now.
Durett is working hard now.

输入格式

见题面

输出格式

见题面

样例输入
4 Durett 7 Gayles 3 Facenda 6 Daughtery 0 1 + Mccourtney 2
样例输出
Mccourtney is not working now. Durett is working hard now.