Type: Default 1000ms 256MiB

民科

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

小果在网上冲浪,突然他看见了一篇震惊世界的paper,声称解决了一个困扰科学家已久的难题

可惜这篇paper的发表处既不是x学也不是x然,而是x乎

小果觉得paper里的这个算式很有趣,你能帮他计算吗?

i=1aj=1bk=1c[gcd(i,j,k)=1]min{ai,bj,ck}\sum_{i=1}^{a}{\sum_{j=1}^{b}\sum_{k=1}^{c}{[gcd(i,j,k)=1]\cdot \min\{\lfloor\frac{a}{i}\rfloor,\lfloor\frac{b}{j}\rfloor,\lfloor\frac{c}{k}\rfloor\}}}

其中[exp][exp]表示,当expexp为真时,[exp][exp]等于11,否则等于00

1a,b,c50001\le a,b,c \le 5000

Format

Input

一行,三个整数a,b,ca,b,c

Output

一行,一个整数,表示答案

Samples

4 4 6
96

UCAS XCPC 2023~2024赛季第一场练习选拔赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-9-27 20:10
End at
2023-9-27 22:40
Duration
2.5 hour(s)
Host
Partic.
11