OMAHA, Neb. (AP) — Billionaire Warren Buffett said Monday that Europe will have a hard time resolving its fiscal problems because of the structure of the European Union and this weekend’s election results in Greece and France.

But he says the turmoil in Europe won’t keep him from investing. Buffett said Berkshire plans to buy two U.S. stocks Monday that it already holds to add to its stakes in those companies.

“I think the worst mistake you can make in stocks is to buy or sell based on current headlines,” Buffett said. He did not identify the two stocks he planned to buy.

Buffett appeared on CNBC on Monday morning, two days after meeting with more than 30,000 people at Berkshire Hathaway Inc.’s annual meeting.

Berkshire’s chairman and CEO said Europe has “got a lot of problems. They’ll solve them, but not without a lot of pain.”

Buffett said part of the challenge is that the European Union’s 17 countries don’t have similar monetary policies. He said it’s not surprising that people in Greece and France voted against the pain of austerity.

He said he wouldn’t hesitate to buy a European business if he found an attractive one to add to Berkshire’s portfolio of more than 80 companies, including the Burlington Northern Santa Fe railroad, Geico insurance and MidAmerican Energy.

Buffett said American banks are in much better financial shape than European counterparts because of measures taken during the financial crisis. He said the United States already injected more capital into its banks and forced them to clean up their balance sheets.

Buffett said the United States did a better job imposing austerity measures and improving its fiscal situation after the financial crisis of 2008. But he says the United States had a better structure to deal with the problems.

“We have a whole different banking system in the United States. Plus, we have our own currency,” he said.

But Buffett said he avoids buying into businesses like Facebook because it’s too hard to estimate what they might be worth.

Buffett said he doesn’t really have an opinion on Facebook and Google because it’s hard to determine their value and how they will fare in the future.

“I’m an agnostic on a company like Facebook. Anytime you get a truly extraordinary business — and it’s obvious it’s an extraordinary business — they’re the hardest ones to value,” Buffett said.

Over the weekend, Buffett also told Berkshire Hathaway shareholders that initial public offerings are almost always bad investments. He says there is so much hype involved that IPOs won’t be the most-attractive value.

He says investors should be looking for good businesses to buy and trying to determine how those companies will fare in 10 years.

Buffett addressed a number of other topics during Monday’s interview:

— Buffett was asked about the inaccuracies in Yahoo CEO Scott Thompson’s biography. Buffett said he doesn’t know the details, but it doesn’t appear that this was an “inadvertent error” so Yahoo’s board may have to act. “If you cannot trust the people you’re working with, you have a problem.”

— The reports Buffett sees from Berkshire’s businesses show there has been some small improvement in housing construction this year. He says he’s not sure how strong the housing trend is, but the overall economy is improving. “Our businesses are getting better, but they’re getting better at a slow pace.”

— Buffett said the U.S. government probably needs to rein in spending and increase tax revenue, but neither political party is ready to do that in an election year. “The problem is in this political environment is no one wants to go first,” he said.