print('YNeos'[[1989,1,8][2019,4,30]::2])