If logcosx(sinx)+logsinx(cosx)=2, then x isAnπ+4π, n integerB2nπ+4π, n integerC4nπ+4π, n integerD44π