A toothpaste factory produced 4012 tubes of toothpaste in the morning shift. It increased its production and made 882 more tubes in the afternoon shift. How many tubes of toothpaste did the factory produce in a single day?