print('YES' if sum(map(int,input().split()))/3 <60 else 'NO')