package m.shin; import java.util.Scanner; public class Con558 { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.nextLine(); s.close(); if(str.contains("575")){ System.out.println("YES"); }else{ System.out.println("NO"); } } }