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