Continuing from the previous scenario: The toothpaste factory produced 4012 tubes of toothpaste in the morning shift and 882 more in the afternoon shift. However, 1734 tubes were found to be defective and had to be discarded. How many tubes of toothpaste were left after discarding the defective ones?