1. Compress the attendance code
easyA school stores attendance as a string of capital letters, such as PPPAAP (P for present, A for absent, L for late). To save space, each run of the same letter is written as the letter followed by the length of the run.
For example, PPPAAP becomes P3A2P1. Print the compressed form of the given string.
Input: One line with the string s.
Output: One line: the compressed string.
Limits: 1 ≤ length of s ≤ 10^5 · s has only capital letters A–Z
Example 1
Input
PPPAAP
Output
P3A2P1
Three P, two A, then one P.
Example 2
Input
A
Output
A1
A single letter still gets its count.