a=int(input('input solved task:'))
tasks_left=12-a
if tasks_left*45<=240:
    print('YES')
else:
    print('NO')