include<iostream>//2003
#include<cmath>
#include<iomanip>
using namespace std;
int main ()
{
double a;
while(cin>>a)
cout<<fixed << setprecision(2)<<abs(a)<<endl;
}
#include<iostream>//2004
using namespace std;
int main ()
{
int a;
while(cin>>a)
{
if(a<=100&&a>=90)
cout<<"A"<<endl;
else if(a>=80&&a<=89)
cout<<"B"<<endl;
else if(a>=70&&a<=79)
cout<<"C"<<endl;
else if(a>=60&&a<=69)
cout<<"D"<<endl;
else if(a>=0&&a<=59)
cout<<"E"<<endl;
else cout<<"Score is error!"<<endl;
}
return 0;
}
#include<iostream>//2005
using namespace std;
int main ()
{
int a,b,c;
char d;
while(cin>>a>>d>>b>>d>>c)
{
int e=0;
switch(b)
{
case 12:e+=30;
case 11:e+=31;
case 10: e+=30;
case 9: e+=31;
case 8: e+=31;
case 7: e+=30;
case 6: e+=31;
case 5: e+=30;
case 4: e+=31;
case 3: if((a%4==0&&a%100!=0)||(a%400==0))
e+=29;
else e+=28;
case 2: e+=31;
}
cout<<e+c<<endl;
}
return 0;
}