Movie Buffs
Time limit2sMemory limit1024 MB
Compare total video minutes for two viewers, where a trailer is 3 minutes, an episode is 20 minutes, and a film is 120 minutes, and report who watched more or a draw.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
Max and Mel are avid movie fans. Both have watched the top 100 movies on most popular sites, and each can list the filmography of any well-known actor. Nearly every conversation between them ends in an argument over whether Han Solo shot first.
One bright October morning, Max and Mel decided to find out which of them spends more time on their hobby. Max counted that over the past year he watched trailers, series episodes, and films. Mel watched trailers, series episodes, and films. A trailer runs 3 minutes, an episode runs 20 minutes, and a film runs 2 hours. Help them settle the argument by determining who watched more minutes of video over the past year.
Input
The first line contains three integers , the numbers of trailers, series episodes, and films that Max watched ().
The second line contains three integers , the numbers of trailers, series episodes, and films that Mel watched ().
Output
If Max watched more total minutes of video than Mel, print Max.
If Mel watched more total minutes of video than Max, print Mel.
If they watched the same total number of minutes, print Draw.