Problem:
Score : 100 points

Problem Statement

Joisino wants to evaluate the formula "A op B".
Here, A and B are integers, and the binary operator op is either + or -.
Your task is to evaluate the formula instead of her.

Constraints

1≦A,B≦10^9

op is either + or -.

Input

The input is given from Standard Input in the following format:

A op B

Output

Evaluate the formula and print the result.

Sample Input 1

1 + 2

Sample Output 1

3

Since 1 + 2 = 3, the output should be 3.

Sample Input 2

5 - 7

Sample Output 2

-2

Solution in C# (Mono 4.6.2.0) (judge verdict: Runtime Error)

using System;
using System.Linq;

class ContestWithDrinksEasy {
    static void Main() {
        string input = Console.ReadLine();

        int problem_count = int.Parse(input);

        input = Console.ReadLine();

        int[] answer_times_of_problem = input.Split(' ')
                                             .Select(s => int.Parse(s))
                                             .ToArray();

        input = Console.ReadLine();

        int drink_count = int.Parse(input);

        for(int i = 0; i < drink_count; i++) {
            input = Console.ReadLine();
            int problem_number = int.Parse(input.Split(' ')[0]);
            int answer_time    = int.Parse(input.Split(' ')[1]);


            int sum_time = GetSumAnswerTime(answer_times_of_problem
                                          , problem_number
                                          , answer_time);

            Console.WriteLine(sum_time);
        }
    }

    // ドリンクを飲んだ場合の合計解答時間を求めるのメソッド
    private static int GetSumAnswerTime(int[] answer_times_of_problem
                                      , int problem_number
                                      , int answer_time) {
        int sum = 0;
        for (int i = 0; i < answer_times_of_problem.Length; i++) {
            if (i == problem_number - 1) {
                sum += answer_time;
            } else {
                sum += answer_times_of_problem[i];
            }
            
        }
        return sum;
    }
}