/*	The program will demonstarte how to use increment & decrement
	Also, it will do some addition, subtraction and remainder in a different way

*
*/

import java.util.Scanner;

public class In_de
{
	public static void main(String[] args)
	{
		int x, y;
		int sum = 0;
		int total = 0, mod = 0;
		
		Scanner key = new Scanner(System.in);
		
		System.out.print("Enter the first value: ");
		x = key.nextInt();
		
		System.out.print("Enter the second value: ");
		y = key.nextInt();
		
		x++; // Increaments x
		y--; // Decrements y
		
		sum += y; // Same as sum = sum + y
		total -= x;// Same as total = total - x
		mod %= x; // Same as mod = mod % x
		
		System.out.println("The increment of first value is " + x);
		System.out.println("The decrement of second value is " + y);
		System.out.println("The value assigned to sum is " + sum);
		System.out.println("The value assigned to total is " + total);
		System.out.println("The remainder assigned to mod is " + mod);
	}
}