insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Earlier Date in Calendar

Earlier Date in Calendar

Difficulty: Medium

Phase: 1 · Conditional Thinking

XP Reward: 20 XP

Topics: Conditional Thinking, Medium

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Given day1, month1 and day2, month2 (4 integers on separate lines). Print 'Date 1', 'Date 2', or 'Same'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: 15 3 20 3

Output: Date 1

Explanation: Sample execution for input 15 3 20 3