CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #837 #839 →

#838. Day of the year

You get a month and a day of a non-leap year. Use a function `day_of_year(m, d)` to find which day of the year it is. ### Input One line: m d. ### Output A number.

Examples

Input
11 8
Output
312
Input
10 22
Output
295

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!