logo AlgoBeat OnlineJudge
登录 注册

#206152. [NEERC 2014] Joke with permutation

内存限制:256 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Joey had saved a permutation of integers from to in a text file. All the numbers were written as decimal numbers without leading spaces.

Then Joe made a practical joke on her: he removed all the spaces in the file.

Help Joey to restore the original permutation after the Joe's joke!

输入格式

The input file contains a single line with a single string -- the Joey's permutation without spaces.

The Joey's permutation had at least and at most numbers.

输出格式

Write a line to the output file with the restored permutation. Don’t forget the spaces!

If there are several possible original permutations, write any one of them.

样例

样例输入 1

4111109876532

样例输出 1

4 1 11 10 9 8 7 6 5 3 2

数据范围与提示

Time limit: 1 s, Memory limit: 256 MB.

Thanks to checker provider:@Arcturus1350 .