import java.util.*;
public class YearsAndDays{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
System.out.println("Enter total minutes");
int min = sc.nextInt();
long year = (long)(min/(60*24*365));
int days = (int)(min/60/24)%365;
System.out.println("Total years in "+min+" minutes"+"
are "+year+" and total days are "+days);
}
}