#include<iostream>using namespace std;int a;int main(){ cin>>a; while(a<=25) {cout<<25-a<<endl; return 0;} cout<<(60-a)+25<<endl; return 0;}