Click Here to go back to the homepage.

R2 Solution:


import java.util.Scanner;

public class R2{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int int1 = sc.nextInt();
        int int2 = sc.nextInt();
        System.out.println(int2- (int1-int2));
        
        
    }
}