first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
@@ -0,0 +1,17 @@
import java.util.Scanner;
public class Main {
static long[] f = new long[2000001];
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
String s = reader.next();
int c=0;
for(int i=0;i<s.length();i++){
if(s.charAt(i)=='4' || s.charAt(i)=='7') c++;
}
System.out.print((c==4 || c==7)?"YES":"NO");
reader.close();
}
}