A,B=map(int, input().split()) divi=1000000007 print(A/b%divi)