#include <iostream>
using namespace std;
int main()
{
int m;
cin>>m;
(m<=25)?cout<<25-m<<endl:cout<<60+25-m<<endl;
}