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-sonlar

Numbers from A to B

Easy 1000 ms 64 MB 20%
Share

Two integers $A$ and $B$ are given ($A \lt B$). Print all integers from $A$ to $B$ (including $A$ and $B$) in increasing order, and then their count.

The sequence of all integers in the range

Input

One line with two integers: $A$ and $B$.

Output

The first line contains the numbers in increasing order, the second line contains their count.

Note

$-10^{4} \le A \lt B \le 10^{4}$
$B - A \le 1000$

Examples

Input #1
1 5
Output #1
1 2 3 4 5
5
Input #2
3 8
Output #2
3 4 5 6 7 8
6

Sign in to submit a solution

Signing up is free and takes a minute.