#K34872. Employee Payment Notification

    ID: 25406 Type: Default 1000ms 256MiB

Employee Payment Notification

Employee Payment Notification

You are given a list of employee payment statuses. Each status includes an employee's name and a value indicating whether the employee has been paid or not. Your task is to generate an email notification for each employee.

The notification should be in the following format:

\(\texttt{Dear \{name\}, your payment is \{status\}.}\)

Use the phrase "completed" when the payment status is paid (represented by 1) and "pending" when not (represented by 0).

The input is read from stdin and the output should be printed to stdout, one notification per line.

Input Format:

  • The first line contains an integer \(n\), the number of employees.
  • The next \(n\) lines each contain an employee's name (a string without spaces) and an integer (1 or 0) indicating the payment status, separated by a space.

Output Format:

  • Print \(n\) lines, where each line is a notification message in the format above.

inputFormat

Input is given via stdin. The first line contains a single integer \(n\) representing the number of employees. The next \(n\) lines each contain an employee's name and payment status (1 for paid, 0 for not paid), separated by a space.

outputFormat

Output the notification messages to stdout. For each employee, print a line: "Dear name, your payment is completed" if the payment status is 1, or "Dear name, your payment is pending" if the status is 0.

## sample
3
Alice 1
Bob 0
Charlie 1
Dear Alice, your payment is completed.

Dear Bob, your payment is pending. Dear Charlie, your payment is completed.

</p>