#include <iostream>
using namespace std;
int main()
{
int c, m;
cin >> m;
c = 60 * m;
cout << c;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int c, m;
cin >> m;
c = 60 * m;
cout << c;
return 0;
}