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

~/algor $ cat problems/for/from-a-to-b-in-decreasing-order

From A to B in decreasing order

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

Two integers and are given. Print all integers strictly between and ( and are not included) in decreasing order, and then their count.

The numbers of the range arranged in decreasing order

Input

One line with two integers: and .

Output

The first line contains the numbers in decreasing order separated by spaces, the second line contains their count.

Note

Examples

Input #1
3 8
Output #1
7 6 5 4
4
Input #2
10 12
Output #2
11
1

Sign in to submit a solution

Signing up is free and takes a minute.