Under construction

Still being built. Things may change

Border Cells

Time limit1sMemory limit1024 MB

Summary
Given the dimensions m and n of a rectangle on a grid, count how many cells lie on its border.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Anya has a grid sheet of paper, and on it she drew a rectangle of size m×nm \times n.

Then she colored the cells of the rectangle that lie on its border.

How many cells did Anya color?

Input

The first line contains an integer mm (1≤m≤1081 \le m \le 10^8).

The second line contains an integer nn (1≤n≤1081 \le n \le 10^8).

Output

Print one integer, the number of cells Anya colored.

Examples1

  1. Example 1

    Input
    4
    5
    
    Expected output
    14