So even if the first 365 students all have different birthdays, and the next 365 students also all have different birthdays, then there are 2 students for every birthday. The last 6 students therefore share a birthday with at least 2 other students. So there are at least 3 students who share a birthday.