#define _USE_MATH_DEFINES #include "bits/stdc++.h" using namespace std; #define FOR(i,j,k) for(int (i)=(j);(i)<(int)(k);++(i)) #define rep(i,j) FOR(i,0,j) #define each(x,y) for(auto &(x):(y)) #define mp make_pair #define MT make_tuple #define all(x) (x).begin(),(x).end() #define debug(x) cout<<#x<<": "<<(x)< >(b,vector(c,d)) #define vvv(a,b,c,d,e) vector > >(b,vv(a,c,d,e)) using ll = long long; using pii = pair; using vi = vector; using vll = vector; string f(int N) { if (N % 3 == 0 && N % 5 == 0)RT "FizzBuzz"; if (N % 3 == 0)RT "Fizz"; if (N % 5 == 0)RT "Buzz"; RT to_string(N); } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(20); int ans = 0; rep(i, 5) { int N; cin >> N; ans += sz(f(N)); } cout << ans << endl; }