n = int(input()) c = 1 ans = 0 while c