X = int(input()) if X in {12, 1, 2}: print("winter") elif 3 <= X <= 5: print("spring") elif 6 <= X <= 8: print("summer") else: print("fall")