

import java.util.Scanner;

/*
 * 

Given a dollar amount between $0.01 and $9.99 you are to output the fewest
number of standard American coins needed to produce that sum. These include 
dollar, half-dollar, quarter, dime, nickel, penny. 

 */
public class Q1 {
	static String units[][] = {{"dollar", "dollars"},
			{"half-dollar", "half-dollars"},
			{"quarter", "quarters"},
			{"dime", "dimes"},
			{"nickel", "nickels"},
			{"penny", "pennies"}
		};	
	
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String val = sc.nextLine();
		int idx = val.indexOf('.');
		int dol = Integer.valueOf(val.substring(1,idx));
		int pen = Integer.valueOf(val.substring(idx+1));
		
		int total = dol*100 + pen;
		
		total = reduce(total, 0, 100);
		total = reduce(total, 1, 50);
		total = reduce(total, 2, 25);
		total = reduce(total, 3, 10);
		total = reduce(total, 4, 5);
		total = reduce(total, 5, 1);
		
	}

	private static int reduce(int total, int idx, int unit) {
		if (total == 0) { return total; }
		if (unit > total) { return total; }
		
		int numUnits = 0;
		int plural = 0;
		while (total >= unit) {
			numUnits++;
			total -= unit;
			plural++;
		}
		
		if (plural > 2) { plural = 2; }
		System.out.println(numUnits + " " + units[idx][plural-1]);
		return total;
	}
}
