def yearInfo2yearDay(yearInfo):
yearInfo = int(yearInfo)<EOL>res = <NUM_LIT> * <NUM_LIT:12><EOL>leap = False<EOL>if yearInfo % <NUM_LIT:16> != <NUM_LIT:0>:<EOL><INDENT>leap = True<EOL>res += <NUM_LIT><EOL><DEDENT>yearInfo //= <NUM_LIT:16><EOL>for i in range(<NUM_LIT:12> + leap):<EOL><INDENT>if yearInfo % <NUM_LIT:2> == <NUM_LIT:1>:<EOL><INDENT>res += <NUM_LIT:1><EOL><DEDENT>yearInfo //= <NUM_LIT:2><EOL><DEDENT>return res<EOL>
calculate the days in a lunar year from the lunar year's info

    >>> yearInfo2yearDay(0) # no leap month, and every month has 29 days.
    348
    >>> yearInfo2yearDay(1) # 1 leap month, and every month has 29 days.
    377
    >>> yearInfo2yearDay((2**12-1)*16) # no leap month, and every month has 30 days.
    360
    >>> yearInfo2yearDay((2**13-1)*16+1) # 1 leap month, and every month has 30 days.
    390
    >>> # 1 leap month, and every normal month has 30 days, and leap month has 29 days.
    >>> yearInfo2yearDay((2**12-1)*16+1)
    389