import java.util.Scanner; public class No66 { public static void main(String[] args){ Scanner s = new Scanner(System.in); String S = s.nextLine(); int N = S.length(); int safe = 0; for(int i=0;i