On the first day of the fun fair, there were 400 more boys than girls. On the second day, the number of boys increased by 30% and the number of girls increased by 70%. There were 2020 children on the second day. How many boys were there on the first day?