{ if ((s == $1) && (d == $2)) { inter=$3-t print inter } s=$1 d=$2 t=$3 }