package yuki172; import java.util.Scanner; public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); sc.close(); if(S.contains("575")) { System.out.println("YES"); } else { System.out.println("NO"); } } }