Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Mysterious Sum

By darkprinx · Limits 1s, 512 MB

Sohel vai reads newspaper every morning. The newspaper he reads contains some good features including different types of puzzle. He likes to those solve very much. In today’s newspaper the puzzle he found involves two numbers being added but with with a mysterious result. Below are a few examples:

  • 4 + 2 = 62
  • 9 + 6 = 153
  • 17 + 12 = 295
  • 5 + 5 = ?

He was quite clever and solved the puzzle quickly and happily went out for a walk. You, being his neighbor, met him on the road where he told you about the puzzle.

Given two numbers you have to find out the mysterious sum of the numbers like given above. Don’t fail to figure out the mystery behind these numbers, otherwise Sohel vai will be upset.

Input

Input starts with an integer T (T ≤ 50), denoting the number of test cases. Each case starts with two integers A and B (1 ≤ B ≤ A ≤ 100) denoting the given numbers.

Output

For each case, print the case number and the sum that is told to find out.

Samples

InputOutput
3
4 2
9 6
17 12
Case 1: 62
Case 2: 153
Case 3: 295


Discussion