include[HTML_REMOVED]
using namespace std;
int m,s,t;
int s1=0,s2=0;
int main()
{
scanf(“%d%d%d”,&m,&s,&t);
for(int i=1;i<=t;++i)
{
s1+=17;
if(m>=10) m-=10,s2+=60;
else m+=4;
s1=max(s1,s2);
if(s1>=s)
{
printf("Yes\n%d",i);
return 0;
}
}
printf("No\n%d",s1);
return 0;
}