import java.util.*; public class Main{ static StringBuilder sb = new StringBuilder(""); public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a = new int[5]; int result=0; for (int i=0;i<5 ;i++ ) { a[i] = sc.nextInt(); } for (int j=0;j<5 ;j++ ) { if (a[j]%3==0&&a[j]%5==0) { sb.append("FizzBuzz"); }else if(a[j]%3==0){ sb.append("Fizz"); }else if(a[j]%5==0){ sb.append("Buzz"); }else{ sb.append(a[j]); } } System.out.println(sb.toString().length()); } }