For this Question: Given N and F(N) find value of F(1), if, F(i)=(F(i-1) + F(i-1))%1000000007 and 0 <= F(1) < 1000000007.First and the only line of input contains two integers N and F(N).

Constraints: 
1 <= N <= 1000000000
0 <= F(N) < 1000000007Print a single integer, F(1).Sample Input 1
2 6

Sample Output 1
3

Exlpanation: F(1) = 3, F(2)=(3+3)%1000000007 = 6.

Sample Input 2
3 6

Sample Input 2
500000005

Explanation: 
F(1) = 500000005
F(2) = (500000005+500000005)%1000000007 = 3
 F(3)= (3+3)%1000000007 = 6, I have written this Solution Code: n,f=map(int,input().strip().split())
mod=10**9+7
m1=pow(2,n-1,mod)
m=pow(m1,mod-2,mod)

print(f*m%mod), In this Programming Language: Python, Now tell me if this Code is compilable or not?