Coprime

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

You are given two integers nn and kk. Find the sum of all positive integers less than or equal to nknk and coprime with nn.

입력

The first and only line of the input contains two integers nn and kk.

출력

Print the answer.

제한

  • 1n,,k10141 \le n, \\, k \le 10^{14}
  • All values in input are integers.