'use strict';

function Main(input) {
    const tmp = input.trim().split('\n');
    if (tmp >= 30) {
        console.log('Yes')
    } else {
        console.log('No')
    }

    return;
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));