Company: Deloitte Analyst role Off-campus_9may
Difficulty: medium
Write a program that accepts two integers, A and X, as inputs and calculate B, if X is equal to (A + B) / 2 . Read the input from STDIN and print the output to STDOUT. Do not write arbitrary messages while reading the input or while printing as these interfere with the standard output. Constraints: i) (A+B) sh ould perform integer division Input format: The only line of input should consist of two integers A and X. Output format: The only line of output should display the value of B. Sample Input: 3 19 Sample Output: 35 Explanation: Based on the gi ven inputs B value is 35