What is the last digit of the number 3^579+ 1