import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int n = s.length(); int count_safe = 0; int count_out = 0; for(int i=0; i