How many seconds are they?

Write a program that converts to seconds a given amount of years, days, hours, minutes and seconds.

Input

The input consists of five natural numbers that represent the years, days, hours, minutes and seconds, respectively.

Output

Write the total number of seconds represented by the input.

Observation

You may assume all the years have 365 days.

Problem information

Author: Unknown
Translator: Gabriel Valiente

Generation: 2026-01-25T11:37:13.133Z

© Jutge.org, 2006–2026.
https://jutge.org