Problem Description

Compress the string using run-length encoding like a3b2.

Input Format

One line string s.

Output Format

One line encoded.

Sample Test Case

Input:
aaabbc
Output:
a3b2c1

Constraints

|s|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next