712b专题

B - Memory and Trident CodeForces - 712B(回到原点,水题)

Input The first and only line contains the string s (1 ≤ |s| ≤ 100 000) — the instructions Memory is given. Output If there is a string satisfying the conditions, output a single integer — the minimu