#include<stdio.h>int main(){ int day,a,b,c; scanf("%d %d %d", &a, &b, &c); day=1; while(1) { if(day%a!=0 || day%b!=0 || day%c!=0){ day++; } else if(day%a==0 && day%b==0 && day%c==0){ printf("%d", day); } break; } return 0;}