#include<bits/stdc++.h>
using namespace std;
int main(){
	int n=5,h=n*24,m=h*60;
	cout<<h<<endl;
	cout<<m;
/**************************************************************
	Problem: 1600
	User: huanghao
	Language: C++
	Result: Compile Error
****************************************************************/