gets;a=[0,*$<.map(&:to_i)].each_cons(2).all?{|a,b|(a-b).abs==1}?:T: :F