#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
int main() {
long long n;
int ans = 0;
cin >> n;
while(n) {
if(n % 10 == 7 || n % 10 == 4) ans++;
n /= 10;
}
if(ans == 4 || ans == 7) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
110A - Nearly Lucky Number
最新推荐文章于 2018-12-14 22:08:55 发布