Compression Algorithm#220

Compression Algorithm

1 second
256 megabytes
Very easy (≈850)

The compression algorithm is an algorithm that groups consecutive identical letters in a given string. For example, when the algorithm is applied to the string aaabbaac, we get a3b2a2c1.

Input

A single line contains the string S consisting of lowercase English letters.

1\le |S|\le 5000, where indicates the length of the string S.

Output

Output the result obtained by applying the compression algorithm to the string S.

Examples

Example 21

Loading
Loading

Example 22

Loading
Loading

Example 23

Loading
Loading

Scoring

In this task, points are awarded for each correct test. The maximum score is 100. The tests given in the examples are not included in the system tests.