S, T, c = gets.chomp.split c = '==' if c == '=' if eval([S, c, T].join) puts 'YES' else puts 'NO' end