#include #include #include #include #include #include #include #include #include #include #include #include //#include "toollib.h" #define INT_MAX 2147483647 #define Loop(i, n) for(int i = 0; i < (int)n; i++) #pragma warning (disable:4018) using namespace std; typedef long long int lint; typedef struct { int x; int y; }coordinate; //***** Main Program ***** //最大公約数を求める lint solve_GCD(lint x, lint y) { while (x != y) { if (x > y) { x -= y; } else { y -= x; } } return x; } int main() { int N; cin >> N; vector z(N); Loop(i, N) cin >> z[i]; lint x = solve_GCD(z.front(), z.back()); cout << z.back() / x << "/" << z.front() / x << endl; return 0; }