print('Yes' if input() in ('-90','0','90') else 'No')