#include <stdio.h>
#define MAX 20
int divisible_by_all(int n)
{
    for (int i = 1; i <= MAX; i++)
        if (n % i != 0)
            return 0;
    return 1;
}

int p5()
{
    int c = 1;
    while (!divisible_by_all(c))
        c++;
    printf("%d\n", c);
    return 0;
}
