Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
Counting SwannĦŻs Coins
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 32, Accepted users: 22
Problem 10152 : No special judgement
Problem description
  Governor Weatherby Swann orders you to count the number of coins in the government treasury. To make the job more interesting you decide to say ĦħDeadĦħ for all numbers that are a multiple of 3 and ĦħManĦħ for all numbers that are a multiple of 5. For numbers that are multiples of both 3 and 5 you say ĦħDeadManĦħ.


Input
  The input will be the number of coins you need to count.

Output
  The output will be the numbers and words in sequence, separated by spaces. Start a new line after each word.

Sample Input
Sample Input 1:
4

Sample Input 2:
18
Sample Output
Sample Output 1:
1 2 Dead
4

Sample Output 2:
1 2 Dead
4 Man
Dead
7 8 Dead
Man
11 Dead
13 14 DeadMan
16 17 Dead
Problem Source
  2007 Maryland High-school Programming Contest

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:18396 today,16241387 total, since 2010-05-07