numbers = list(map(int, input().split()))

pos = 0
neg = 0
zero = 0

for n in numbers:
    if n > 0:
        pos += 1
    elif n < 0:
        neg += 1
    else:
        zero += 1

print(f"양수:{pos} 음수:{neg} 0:{zero}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: