n = int(input())
# Fibonacci series:
# the sum of two elements defines the next.
a, b = 0, 1
while b < n:
    print(b, end=', ')
    a, b = b, a+b

# https://2018intropython-ms33.notebooks.azure.com/j/notebooks/Introduction%20to%20Python.ipynb#First-Steps-Towards-Programming



