from sys import stdin from fractions import Fraction input = stdin.readline n = int(input()) if n > 0: print("0/1") elif n < 0: n *= -1 a = [Fraction(0) for i in range(n + 1)] a[0] = Fraction(1, 10) a[1] = Fraction(-1, 100) for i in range(2, n + 1): a[i] = -(a[i - 1] + a[i - 2]) / 10 ans_x, ans_y = a[n].numerator, a[n].denominator mul = 10**20 // ans_y ans_x *= mul ans_y *= mul print(ans_x, ans_y, sep="/") else: print("1/10")