# 50153. Stepped Polygon

## I'm a slow walker, but I never walk backwards.

We have a stepped polygon on the plane as in the following figure.

figure 1
The stepped polygon consists of eight edges $a$, $b$, $c$, $d$, $e$, and $f$, where all corners are right angles. Please write a program to calculate the perimeter and the area of the stepped polygon. For example, the perimeter and the area of the stepped polygon in the figure below are 30 and 33 respectively.
figure 2

## Input Format

The input has six lines for the length of $a$, $b$, $c$, $d$, $e$, and $f$, all are positive integers.

• $1 \leq a, b, c, d, e, f \leq 10000$

## Output Format

The first line of the output is the perimeter of the stepped polygon, and the second line has the area of the stepped polygon.

## Sample Input

324132


## Sample Output

3033