#K12041. Total Manual Intervention Time

    ID: 23602 Type: Default 1000ms 256MiB

Total Manual Intervention Time

Total Manual Intervention Time

You are given a list of jobs. Each job has a priority and a required manual intervention time. Your task is to compute the total manual intervention time across all jobs.

The input is provided in the following format:

Input Format:

  1. The first line contains a single integer \( n \), representing the number of jobs.
  2. The next \( n \) lines each contain two integers: the first integer is the job's priority and the second is the manual intervention time required for that job.

Output Format:

Output a single integer, which is the sum of the manual intervention times for all jobs.

Note: Although each job comes with a priority, the priority does not affect the computation, and you simply need to sum the manual times.

inputFormat

The input is read from stdin and has the following format:

  1. An integer \( n \) representing the number of jobs.
  2. \( n \) lines follow, each containing two space-separated integers. The first integer is the job's priority and the second is its manual intervention time.

outputFormat

Output a single integer which is the total manual intervention time required for all jobs. The output should be written to stdout.

## sample
5
1 20
2 15
1 10
3 15
2 5
65

</p>