Japan’s exports rose 7.8% in February from a year earlier on strong shipments of cars and electrical machinery, the government said Thursday.

Exports in February totaled 8.2 trillion yen ($55 billion), marking the third straight month of growth, according to preliminary customs data.

The report showed the trade deficit sank by more than half on-year to 379 billion yen ($2.5 billion), marking the second straight month of a deficit.