Andy Ciaccio receives his check from Virginia Lottery Executive Director Paula Otto. (Courtesy of Virginia Lottery)

Andy Ciaccio of Herndon, Va., buys coffee almost every day.

His favorite spot is the Sheetz gas station across the street from the Chevrolet dealership where he works in Warrenton, Va.

Last week, along with his cup of joe, he also bought a lottery ticket at the convenience store in Fauquier County. Turns out it was a winner. A big one — $5 million.

On Friday afternoon, Ciaccio met with lottery officials and posed for a picture with a big check at the Sheetz store at 600 Blackwell Rd.

Ciaccio contacted Virginia lottery officials this week after they put out an announcement saying they were looking for the winner — or winners — from a June 12 Mega Millions drawing.

It wasn’t clear what Ciaccio, who works as a finance officer at the car dealership, did in the days between buying the ticket and realizing that he’d won. (Lottery officials recommend immediately signing the back of a winning ticket and putting it in a safe place.)

The winning lottery numbers were 1-40-42-56-62. And the Mega Ball number was 2.

Ciaccio spent an extra dollar for the Megaplier game. That number in the Friday drawing was 5, so it brought his winnings to $5 million, according to Virginia lottery officials.

Ciaccio told lottery officials this week when he claimed his prize that when he discovered he had matched the first five numbers, “This has to be worth something.”

When he realized it was worth $5 million, he told lottery officials he was speechless.

“This can’t be,” Ciaccio said he recalled thinking.

There is still an unknown winner — or winners — for a $1 million lottery ticket for the June 12 Mega Millions drawing. That ticket was bought at a Kroger grocery store at 1925 Electric Rd. in Salem, Va.

Both of the winning tickets matched the first five numbers.

John Hagerty, a spokesman for the Virginia Lottery, said Friday it isn’t uncommon for big-dollar lottery winners to wait weeks, or near the 180-day deadline from the drawing date, before they claim their prize. Winners often spend the time consulting lawyers, accountants, tax experts and financial planners.

In Virginia, it is required that lottery winners be named publicly. And the District’s lottery Web site says “specific lottery winner information is public record.” But some states allow winners to remain anonymous, including Maryland.

Last year, a man who won a $189 million Mega Millions jackpot after buying a ticket at an Anne Arundel convenience store claimed his ticket with his family at lottery headquarters in Maryland. They hid their faces behind signs, which read: “We are so . . . blessed, excited, fortunate, happy!!”

The man hid his winning ticket in an unplugged lamp for more than a week before claiming his prize. He said he dreamed that his relatives told him the winning numbers the night before he bought a ticket at a Dash In convenience store in Severn.