import java.util.*; import java.io.*; import java.math.*; class Main{ static void solve(){ int n = ni(); double rad = Math.toRadians(n); double tan = Math.tan(rad); output.print(isRational(tan)? "Yes" : "No"); } private static boolean isRational(double x) { if (Double.isNaN(x)) return false; double fraction = x % 1; return fraction == 0 || fraction == 0.5 || fraction == -0.5; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - // static int ni(){ return Integer.parseInt(sc.next()); } static long nl(){ return Long.parseLong(sc.next()); } static double nd(){ return Double.parseDouble(sc.next()); } static String ns(){ return sc.next(); } static BigInteger bi(){ return sc.nextBigInteger(); } static BigDecimal bd(){ return sc.nextBigDecimal(); } static PrintWriter output; static Scanner sc ; public static void main(String[] args){ output = new PrintWriter(System.out); sc = new Scanner(System.in); solve(); output.flush(); } }