# Area Of Triangle
# a = float(input('Enter a Value: '))
# b = float(input('Enter a Value: '))
# c = float(input('Enter a Value: '))

# s = (a + b + c) / 2

# area = (s*(s-a)*(s-b)*(s-c)) ** 0.5

# print('%0.2f' %area)

# import math

# a = float(input('Enter a: '))
# b = float(input('Enter b: '))
# c = float(input('Enter c: '))

# d = (b**2) - (4*a*c)

# # sol1 = (-b-cmath.sqrt(d))/(2*a)
# # sol2 = (-b+cmath.sqrt(d))/(2*a)
# # print('The solution are {0} and {1}'.format(sol1, sol2))
# print(f'The solution are {d}')


# x = input('Enter a Value: ')
# y = input('Enter second Value: ')

# temp = x
# x = y
# y = temp

# print(f'Final swapping is A=>{x} and B=> {y}')

# import random

# print(random.randint(0, 10))

# km = float(input('Enter how many kilometers: '))

# conv_fav = 0.621371

# miles = km * conv_fav

# pointed_conv = '%0.2f' % miles

# print(f'You entered {pointed_conv} miles in km')

# celsius = float(input('Enter temp in celsius: '))

# fahrenheit = (celsius*1.8) + 32

# print(fahrenheit,celsius, cel)

import calendar


yy = int(input('Enter Year: '))
mm = int(input('Enter Month: '))

print(calendar.month(yy, mm))

