# coding: utf-8 N = gets.to_i d = N % 360 if d == 90 or d == 270 then puts "Yes" else puts "No" end