using namespace std;
int main(){
int s1 = 60,s2=90,L; scanf("%d",&L); printf("%d minutos",int(L/30.0*60)); return 0;
}