# -*- coding: utf-8 -*-
"""
Created on Fri Jul 23 21:46:39 2021

@author: züleyha
"""
def negative_sum(x):
    with open(x , "r") as file:
        content= file.read().split()
        s = 0
        c = 0
        for i in range(0, len(content)):
            k = int(content[i])
            s+= k
            c+=1
            if s < 0 :
                print(f"{s} after {c} steps")
                return True
        print("no negative sum")
        return False
                
                    



    
62d6b98f8fe7de5fd39110a9584b79dfa76823a7
<mask token>

<mask token>


def negative_sum(x):
    with open(x, 'r') as file:
        content = file.read().split()
        s = 0
        c = 0
        for i in range(0, len(content)):
            k = int(content[i])
            s += k
            c += 1
            if s < 0:
                print(f'{s} after {c} steps')
                return True
        print('no negative sum')
        return False

# -*- coding: utf-8 -*-
"""
Created on Fri Jul 23 21:46:39 2021

@author: züleyha
"""
def negative_sum(x):
    with open(x , "r") as file:
        content= file.read().split()
        s = 0
        c = 0
        for i in range(0, len(content)):
            k = int(content[i])
            s+= k
            c+=1
            if s < 0 :
                print(f"{s} after {c} steps")
                return True
        print("no negative sum")
        return False
                
                    



    