#include <iostream>
using namespace std;
//抄博友程序 没掌握 学好英语
int main()
{
while(1)
{
string s;
while(1)
{
cin>>s;
if(s=="ENDOFINPUT")
{
break;
}
double r,oil,angle;
double pi=3.14159;
cin>>r>>oil>>angle;
cin>>s;
//cout<<r<<" "<<oil<<" "<<angle<<endl;
double dis;
if(angle<=180)
{
dis=2*pi*r*(angle/360.0);
}else
{
dis=2*pi*r*((360.0-angle)/360.0);
}
//cout<<dis<<endl;
if(oil*5>=dis*2)//如果你有足够的燃料到达坠机地点并返回
{
cout<<"YES "<<(int)(oil-dis/5.0)<<endl;//剩多少汽油
}else
{
cout<<"NO "<<(int)(oil*5)<<endl;//能走多少路
}
}
if(s=="ENDOFINPUT")
{
break;
}
}
return 0;
}