// Arup Guha
// 1/28/2026
// Solution to Question #1 for COP 3330 Quiz #6

import java.util.*;

public class quiz1q6 {

	public static void main(String[] args) {
	
		// Get user input.
		Scanner stdin = new Scanner(System.in);
		System.out.println("How many days of working out?");
		int n = stdin.nextInt();
		
		// i is the day.
		for (int i=0; i<n; i++) {
			
			// Starting text for this row.
			System.out.print("Day "+i+": ");
			
			// Have to do these first.
			if ((i%10) %3 == 0)
				System.out.println("leg day");
			
			// Then these.
			else if ((i%10) %4 == 0)
				System.out.println("arm day");
			
			// This is the leftover days.
			else
				System.out.println("cardio");
		}
	}
}