import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No0289 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { String s = in.next(); int n = s.length(); int ans = 0; for (int i=0; i