#include int main() { int work, dead_line; std::cin >> work >> dead_line; while (dead_line != 1) { work -= work / (dead_line * dead_line); dead_line--; } std::cout << work << std::endl; return 0; }