             count = earlyshiftlocationarray.count + center1shiftlocationarray.count + center2shiftlocationarray.count + center3shiftlocationarray.count + lateshiftlocationarray.count + holidayshiftlocationarray.count + othershiftlocationarray.count
             print(staffname + "  " + String(count))
            
-            print(staffarraytmp)
-            print(holidayshiftlocationarray)
+            
+//            print(staffarraytmp)
+//            print(holidayshiftlocationarray)
 
             if(count == monthrange.length){
                 

        return removedarray
    }
    
    
    //スタッフのシフトを日にちごとに分けたArrayを返す
    func SplitDayShiftGet(var staffarray: Array<String>) -> Array<String>{

            
            
            //1クール分のシフト文字以外のシフト名をカウントしてしまうので、範囲外の要素を削除する
            var index = staffarraytmp.startIndex
            var numeralcount = 0
            var removeflag = false
            
            while(index != staffarraytmp.endIndex.predecessor()){
                
                if(Int(String(staffarraytmp[index])) != nil){
                    numeralcount++
                }else{
                    numeralcount = 0
                }
                
                if(numeralcount >= 5){
                    index = index.advancedBy(-5)
                    removeflag = true
                    break
                }
                
                index = index.successor()
            }
            
            if(removeflag){
                earlyshiftlocationarray = self.AAA(earlyshiftlocationarray, pivotindex: index, text: staffarraytmp)
                center1shiftlocationarray = self.AAA(center1shiftlocationarray, pivotindex: index, text: staffarraytmp)
                center2shiftlocationarray = self.AAA(center2shiftlocationarray, pivotindex: index, text: staffarraytmp)
                center3shiftlocationarray = self.AAA(center3shiftlocationarray, pivotindex: index, text: staffarraytmp)
                lateshiftlocationarray = self.AAA(lateshiftlocationarray, pivotindex: index, text: staffarraytmp)
                othershiftlocationarray = self.AAA(othershiftlocationarray, pivotindex: index, text: staffarraytmp)
                holidayshiftlocationarray = self.AAA(holidayshiftlocationarray, pivotindex: index, text: staffarraytmp)
            }
            
            
            
