n = int(input()) a = [0,5,101,101,3171,151 ] print(a[n])