Morning light hits the singing sands of Echo Dunes as Nina unrolls the day's manifest of sigils. The tally will decide the next shipment. Task: Compress s using run-length encoding: replace each maximal run of equal characters c repeated k times by c followed by k. Input format: One line with a single lowercase string s. Output format: Print the encoded string. Constraints: 1 <= |s| <= 1256; s contains lowercase English letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s| <= 1256; s contains lowercase English letters.
