It struggled to return to profitability last year after losing billions of euros in a massive trading scandal , and reported a net loss of euro278 million in the first quarter this year after devaluation of assets linked to U.S. real estate .