import java.util.Map;
import java.util.Scanner;
import java.io.OutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.io.PrintWriter;
import java.util.HashMap;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
* @author aajjbb
*/
public class Main {
public static void main
(String[] args
) { Scanner in = new Scanner(inputStream);
EasyNumberChallenge solver = new EasyNumberChallenge();
solver.solve(1, in, out);
out.close();
}
}
class EasyNumberChallenge {
public void solve
(int testNumber, Scanner in,
PrintWriter out
) { int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
Map<Triplet, Long> map = new HashMap<Triplet, Long>();
long ans = 0L;
for(int i = 1; i <= a; i++) {
for(int j = 1; j <= b; j++) {
for(int k = 1; k <= c; k++) {
Triplet now = new Triplet(i, j, k);
if(map.containsKey(now)) {
ans += map.get(now);
} else {
long tmp = countDiv(i*j*k);
map.put(now, tmp);
ans += tmp;
}
}
}
}
out.println(ans);
}
public long countDiv(long n) {
if(n == 1L) return 1L;
int x
= (int) Math.
sqrt(n
); int counter = 0;
for(int i = 1; i <= x; i++) {
if(n % i == 0) {
counter += 2;
}
}
if(x * x == n) counter -= 1;
return counter;
}
class Triplet {
public int a, b, c;
public Triplet(int a1, int b1, int c1) {
int[] tmp = {a1, b1, c1};
a = tmp[0]; b = tmp[1]; c = tmp[2];
}
@Override
public boolean equals
(Object o
) { Triplet triplet = (Triplet) (o);
return (this.a == triplet.a) && (this.b == triplet.b) && (c == triplet.c);
}
}
}
aW1wb3J0IGphdmEudXRpbC5NYXA7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKaW1wb3J0IGphdmEuaW8uT3V0cHV0U3RyZWFtOwppbXBvcnQgamF2YS5pby5JT0V4Y2VwdGlvbjsKaW1wb3J0IGphdmEudXRpbC5BcnJheXM7CmltcG9ydCBqYXZhLmlvLlByaW50V3JpdGVyOwppbXBvcnQgamF2YS51dGlsLkhhc2hNYXA7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtOwoKLyo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A8PSBjOyBrKyspIHsKICAgICAgICAgICAgICAgICAgICBUcmlwbGV0IG5vdyA9IG5ldyBUcmlwbGV0KGksIGosIGspOwogICAgICAgICAgICAgICAgICAgIGlmKG1hcC5jb250YWluc0tleShub3cpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFucyArPSBtYXAuZ2V0KG5vdyk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgbG9uZyB0bXAgPSBjb3VudERpdihpKmoqayk7CiAgICAgICAgICAgICAgICAgICAgICAgIG1hcC5wdXQobm93LCB0bXApOwogICAgICAgICAgICAgICAgICAgICAgICBhbnMgKz0gdG1wOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBvdXQucHJpbnRsbihhbnMpOwogICAgfQogICAgcHVibGljIGxvbmcgY291bnREaXYobG9uZyBuKSB7CiAgICAgICAgaWYobiA9PSAxTCkgcmV0dXJuIDFMOwoKICAgICAgICBpbnQgeCA9IChpbnQpIE1hdGguc3FydChuKTsKICAgICAgICBpbnQgY291bnRlciA9IDA7CgogICAgICAgIGZvcihpbnQgaSA9IDE7IGkgPD0geDsgaSsrKSB7CiAgICAgICAgICAgIGlmKG4gJSBpID09IDApIHsKICAgICAgICAgICAgICAgIGNvdW50ZXIgKz0gMjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZih4ICogeCA9PSBuKSBjb3VudGVyIC09IDE7CiAgICAgICAgcmV0dXJuIGNvdW50ZXI7CiAgICB9CiAgICBjbGFzcyBUcmlwbGV0IHsKICAgICAgICBwdWJsaWMgaW50IGEsIGIsIGM7CgogICAgICAgIHB1YmxpYyBUcmlwbGV0KGludCBhMSwgaW50IGIxLCBpbnQgYzEpIHsKICAgICAgICAgICAgaW50W10gdG1wID0ge2ExLCBiMSwgYzF9OwogICAgICAgICAgICBBcnJheXMuc29ydCh0bXApOwogICAgICAgICAgICBhID0gdG1wWzBdOyBiID0gdG1wWzFdOyBjID0gdG1wWzJdOwogICAgICAgIH0KCiAgICAgICAgQE92ZXJyaWRlCiAgICAgICAgcHVibGljIGJvb2xlYW4gZXF1YWxzKE9iamVjdCBvKSB7CiAgICAgICAgICAgIFRyaXBsZXQgdHJpcGxldCA9IChUcmlwbGV0KSAobyk7CiAgICAgICAgICAgIHJldHVybiAodGhpcy5hID09IHRyaXBsZXQuYSkgJiYgKHRoaXMuYiA9PSB0cmlwbGV0LmIpICYmIChjID09IHRyaXBsZXQuYyk7CiAgICAgICAgfQogICAgfQp9