function [out]=monthday(input)

DAYSPM = [31 28 31 30 31 30 31 31 30 31 30 31];
global monthday
mnthday=[0 cumsum(DAYSPM)];
out=mnthday(input);