BEGIN {OFS='\t'} $3 ~ /5$/ {print $3, $1, "$" $5}