#include <iostream>
#include <numeric> 

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int result = std::gcd(std::gcd(a, b), c);
    cout << result << "\n";

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: