Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/keyingi-va-oldingi-son

Next and previous number

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 64 MB 5%
Share

You are given an integer . Print the previous number and the next number .

On the number line, n and its two neighbours: the previous and the next number

Input

One integer .

Output

on the first line, on the second line.

Note

Examples

Input #1
5
Output #1
4
6
Input #2
0
Output #2
-1
1

Sign in to submit a solution

Signing up is free and takes a minute.