import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner cin = new Scanner(System.in); String line = cin.next(); int count = line.length(); int zero_count = 0; int eight_count =0; char tmp; int result; for(int i=0;i0){ result = 2*count+1+zero_count; }else{ result = 2+count; } System.out.println(result); } }