c++
#include <iostream> using namespace std; int main(){ int m; cin >> m; int w = (25 - m + 60) % 60; cout << w; }