Problem Description

Given n numbers, apply async transform f(x)=x*3+1 one by one (series). Print results.

Input Format

Line1: n. Line2: n integers.

Output Format

One line results.

Sample Test Case

Input:
5 1 2 3 4 5
Output:
4 7 10 13 16

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next