import java.util.Calendar;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int year = console.nextInt();
Calendar calendar = Calendar.getInstance();
for (int i = 1; i <= 12; i++) {
calendar.set(year, i - 1, 1);
//System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime()));
System.out.printf("%d年%d月:%d天\n", year, i, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
}
}
}