split the input data with months