print(["No","Yes"][abs(180-int(input())%360)==90])