s=input().split() Y=int(s[0]) M=int(s[1]) for ss in range(Y,Y+11): if ss%4==0 and ss%100!=0: M=M*1.3 M=int(M) else: M=M*1.2 M=int(M) print(M)