It is better to shrink log files only, even if you shrink data files it will not have any impact on the size of the data base.