#include int main(){ int H,M; scanf("%d%*c%d",&H,&M); if(H<7||(H==7&&M<30)){ printf("Yes"); } else if(H<8||(H==8&&M<30)){ printf("Late"); } else{ printf("No"); } }