Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/a-dan-b-gacha-kamayish-tartibida

From A to B in decreasing order

Easy 1000 ms 64 MB 21%
Share

Two integers $A$ and $B$ are given ($A \lt B$). Print all integers strictly between $A$ and $B$ ($A$ and $B$ 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: $A$ and $B$.

Output

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

Note

$1 \le A \lt B \le 1000$

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.