Tossing 5-yen coins ('go-en' = good fortune) into shrine offering boxes is a custom. Carry a handful.
The ritual at a shrine: toss the coin, bow twice, clap twice, pray silently, bow once more. Keep it quick at busy shrines.
At Buddhist temples, you don't clap — just bow, pray, bow.