Lattice QCD, flavor physics and the unitarity triangle analysis