#include <iostream>using namespace std;
int main(){ int n; cin>>n; if(0<=n&&n<=25){ cout<<25-n<<endl ; } else if(25<n<59){ cout<<60-n+25<<endl ; } return 0; }