输入输出样例:
Input Sample 1: 2009-2 Output Sample 1: 28 Input Sample 2: 2009-3 Output Sample 2: 31 Input Sample 3: 2009-11 Output Sample 3: 30 Input Sample 4: 2008-2 Output Sample 4: 29
Input Sample 1: 2009-2 Output Sample 1: 28 Input Sample 2: 2009-3 Output Sample 2: 31 Input Sample 3: 2009-11 Output Sample 3: 30 Input Sample 4: 2008-2 Output Sample 4: 29