package codeup100;
import java.util.Scanner;
public class c1091 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] nums = sc.nextLine().split(" ");
sc.close();
long a = Integer.parseInt(nums[0]); //ììê°
int m = Integer.parseInt(nums[1]); //ê³±í ê°
int d = Integer.parseInt(nums[2]); //ëí ê°
int n = Integer.parseInt(nums[3]); //ëªë²ì§¸ì¸ì§ ëíë´ë ì«ì
//intì ëì¹ë¯ë¡ longì¼ë¡
//-50 50 -50 10 => -99649234693877550
for(int i=0; i