def f(a,b) return (a+1)%3==b end a,b,c,d=gets.split(" ").map{|e| e.to_i} ans="" if a>c then ans="null" elsif a