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