#include <iostream> using namespace std; int search(int m, int n) { if(m < n) return search(m, n/2); else if(n < m) return search(m/2, n); else return m; } int main() { int m, n; scanf("%d%d", &m, &n); printf("%d/n",search(m, n)); return 0; }