import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if(a == 0 || a == 4 || a == 10){ System.out.println("Yes"); }else{ System.out.println("No"); } } }