Problem:

Finding a Word

Write a program which reads a word W and a text T, and prints the number of word W which appears in text T

  T consists of string Ti separated by space characters and newlines. Count the number of Ti which equals to W. The word and text are case insensitive.

Constraints

  
The length of W ≤ 10

  
W consists of lower case letters

The length of T in a line ≤ 1000

Input

  In the first line, the word W is given. In the following lines, the text T is given separated by space characters and newlines.

"END_OF_TEXT" indicates the end of the text.

Output

  Print the number of W in the text.

Sample Input

computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT

Sample Output

3



Sample input:
computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT


Sample output:
3

Submission status: Wrong Answer

Solution code:

word = input()
counter = 0
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.'))
  s = ' '.join(s)
  s = list(s.split())
  counter += s.count(word)

print(counter)

Submission status: Wrong Answer

Solution code:
word = input()
counter = 0
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.'))
  s = ' '.join(s)
  s = list(s.split())
  counter += s.count(word)

print(counter)

Submission status: Wrong Answer

Solution code:
word = input()
counter = 0
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split())
  counter += s.count(word)
  counter += s.count(word + '.')

print(counter)

Submission status: Wrong Answer

Solution code:
# coding:utf-8

W=input()
ct=0
while True:
    S=map(str,input().split())

    for i in S:
        if i=="END_OF_TEXT":
            print(ct)
            exit(0)
        elif i==W:
            ct=ct+1

Submission status: Wrong Answer

Solution code:
w = input()
ti = ''
while True:
    t = input()
    if t == 'END_OF_TEXT':
        break
    ti += ' ' + t
print(ti.count(w))

Submission status: Wrong Answer

Solution code:
import sys
w = input()
cnt = 0
for sentence in sys.stdin:
    cnt += sentence.count(w)
print(cnt)

Submission status: Wrong Answer

Solution code:
target_word = raw_input()
text = ''
while True:
    raw = raw_input()
    if raw == "END_OF_TEXT":
        break
    # text += raw.strip('.') + ' '
    text = raw + ' '

# ans = 0
print(text.lower().split().count(target_word))
# for word in text.lower().split():
#     if word == target_word:
#         ans += 1
# print(ans)

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    # ??????????????\???
    word = input()
    texts = []
    while True:
        raw_input = input()
        if raw_input == 'END_OF_TEXT':
            break
        texts.append(raw_input.lower())

    # ?????????????¨??????°???????????????
    match_count = 0
    for line in texts:
        match_count += line.count(word.lower())

    # ???????????????
    print(match_count)

Submission status: Wrong Answer

Solution code:
w = input()
count = 0
while True:
    t = input()
    if t == "END_OF_TEXT": break
    count += t.count(w)
print(int(count))

Submission status: Wrong Answer

Solution code:
w = input()
count = 0
while True:
    t = input()
    if t == "END_OF_TEXT": break
    count += t.lower().count(w)
print(int(count))

Submission status: Wrong Answer

Solution code:
T = ""
W = input()
while True:
    tmp = input()
    if tmp == "END_OF_TEXT":
        break
    T += tmp + " "
print(sum([1 for c in T.split() if c == W]))

Submission status: Wrong Answer

Solution code:
import re

W = input()
T = ""
while True:
  inp = input()
  if inp == 'END_OF_TEXT':
    break
  T += inp

print(len(re.findall(W, T)))

Submission status: Wrong Answer

Solution code:
import re

W = input().lower()
T = ""
while True:
  inp = input()
  if inp == 'END_OF_TEXT':
    break
  T += inp.lower()

print(len(re.findall(W, T)))

Submission status: Wrong Answer

Solution code:
W = input().lower()
T = ""
while True:
  inp = input()
  if inp == 'END_OF_TEXT':
    break
  T += inp.lower()

print(T.split().count(W))

Submission status: Wrong Answer

Solution code:
W = input().lower()
T = ""
while True:
  inp = input().strip()
  if inp == 'END_OF_TEXT':
    break
  T += inp.strip().lower()+' '


print(T.split())

print(T.split().count(W))

Submission status: Wrong Answer

Solution code:
w=input()
s=input()
print(s.count(w))

Submission status: Wrong Answer

Solution code:
w=input()
t=""
while True:
    try:
        t+=input()
    except:
        print(t.count(w))
        break

Submission status: Wrong Answer

Solution code:
w=input()
t=""
while True:
    a=input()
    if a=="END_OF_TEXT":
        break
    t+=a
print(t.count(w))

Submission status: Wrong Answer

Solution code:
w=input()
t=""
while True:
    a=input()
    t+=a
    if a=="END_OF_TEXT":
        break
print(t.count(w))

Submission status: Wrong Answer

Solution code:
import sys
w=input()
c=0
for s in sys.stdin:
    if s == "END_OF_TEXT":
        break
    c += s.count(w)
print(c)

Submission status: Wrong Answer

Solution code:
import sys
w=input().upper()
c=0
for s in sys.stdin:
    if "END_OF_TEXT" in s:
        break
    c += str(s).upper().count(w)
print(c)

Submission status: Wrong Answer

Solution code:
s=input()
tex=""
while 1:
	a=input()
	if a=="END_OF_TEXT":
		break
	else:
		tex+=a+" "

s=list(s)
c=0
tex=list(tex+tex)
for i in range(len(tex)//2):
	if tex[i:i+len(s)]==s:
		c+=1

print(c)

Submission status: Wrong Answer

Solution code:
s=input()
tex=""
while 1:
	a=input()
	if a=="END_OF_TEXT":
		break
	else:
		tex+=a+" "

s=list(s)
c=0
tex=list(tex+tex)
for i in range(len(tex)):
	if tex[i].isalpha():
		tex[i]=tex[i].lower()
for i in range(len(s)):
	if s[i].isalpha():
		s[i]=s[i].lower()
for i in range(len(tex)//2):
	if tex[i:i+len(s)]==s:
		c+=1

print(c)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
k_word = input()
count = 0

while True:
    s = input()
    
    if s == "END_OF_TEXT":
        break
    
    count += s.count(k_word)

print(count)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
k_word = input()
count = 0

while True:
    s = input()
    
    if s == "END_OF_TEXT":
        break
    
    count += s.lower().count(k_word)

print(count)

Submission status: Wrong Answer

Solution code:
import sys
W = input()
print(sum(line.split().count(W) for line in sys.stdin.readlines()))

Submission status: Wrong Answer

Solution code:
import sys
w = input()
lines = sys.stdin.read()
line=lines[0:lines.find('END_OF_TEXT')]
print(line.count(w))

Submission status: Wrong Answer

Solution code:
import sys
w = input()
lines = sys.stdin.read()
line=lines[0:lines.find('END_OF_TEXT')].lower()
print(line.count(w))

Submission status: Wrong Answer

Solution code:
word_count = 0
W = input()
while True:
    try:
        T = input()
        if T == "END_OF_TEXT":
            break
    except EOFError:
        break
    word_count += T.count(W)
print(word_count)

Submission status: Wrong Answer

Solution code:
word_count = 0
W = input().lower()
while True:
    try:
        T = input()
        if T == "END_OF_TEXT":
            break
    except EOFError:
        break
    word_count += T.lower().count(W)
print(word_count)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

target = input()
ans = 0

while True:
	ss = input()
	if ss == "END_OF_TEXT":
		break
	ans += len([x for x in ss.split() if x == target])

print(ans)

Submission status: Wrong Answer

Solution code:
import sys
w = input()
t = sys.stdin.read().rstrip('END_OF_TEXT')
print(t.count(w))

Submission status: Wrong Answer

Solution code:
import sys
w = input()
t = sys.stdin.read().rstrip('END_OF_TEXT')
print(t.lower().count(w))

Submission status: Wrong Answer

Solution code:
word = str(input())
W = []
for i in word:
    W.append(i)

T = []
while True:
    text = str(input())
    if text == 'END_OF_TEXT':
        break
    for i in text:
        T.append(i)

count = 0
for i in range(len(T)-len(W)):
    flag = 1
    for j in range(len(W)):
        if T[i+j] != W[j]:
            flag = 0
    if flag == 1:
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
word = str(input())
W = []
for i in word:
    W.append(i)

T = []
while True:
    text = str(input())
    if text == 'END_OF_TEXT':
        break
    for i in text:
        T.append(i)

count = 0
for i in range(len(T)-len(W)):
    flag = 1
    for j in range(len(W)):
        if T[i+j].lower() != W[j].lower():
            flag = 0
    if flag == 1:
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
word = str(input())
W = []
for i in word:
    W.append(i)

T = []
while True:
    text = str(input())
    if text == 'END_OF_TEXT':
        break
    for i in text:
        T.append(i)

count = 0
for i in range(len(T)-len(W)+1):
    flag = 1
    for j in range(len(W)):
        if T[i+j].lower() != W[j].lower():
            flag = 0
    if flag == 1:
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
import sys

W = input()
T = sys.stdin.read().lower()

print(T.count(W))

Submission status: Wrong Answer

Solution code:
import sys

count = 0

W = input()

for T in sys.stdin.readline().lower():
    if T.count(W):
        count += T.count(W)

print(count)

Submission status: Wrong Answer

Solution code:
import sys
 
W = input().lower()
T = sys.stdin.read().lower()
 
print(T.count(W))

Submission status: Wrong Answer

Solution code:
import sys
W = input()
print(sys.stdin.read().rstrip('END_OF_TEXT').lower().split(" ").count(W))

Submission status: Wrong Answer

Solution code:
import sys
W = input().lower()
print(sys.stdin.read().rstrip('END_OF_TEXT').lower().split(" ").count(W))

Submission status: Wrong Answer

Solution code:
import sys
lines = [line for line in sys.stdin]
W = lines[0].strip()
print(sum([1 for line in lines[1:] for w in line.split() if w == W]))

Submission status: Wrong Answer

Solution code:
import sys

W = input().lower()
T = sys.stdin.read().lower()

print(T.count(W))

Submission status: Wrong Answer

Solution code:
import sys

#fin = open("test.txt", "r")
fin = sys.stdin

w = fin.readline()
w = w.rstrip('\n')
w = w.lower()

s = fin.read()
s = s.lower()

idx = 0
count = 0
while True:
	idx = s.find(w, idx)
	if idx < 0:
		break
	idx += 1
	count += 1

print(count)

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys
import re


def main():
    w = sys.stdin.readline().lower().strip('\n')
    t = str()

    for line in sys.stdin:
        if line == 'END_OF_TEXT':
            break
        t += line.lower()

    print(len(re.findall((w), t)))    


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys
import re

def main():
    w = sys.stdin.readline().lower().strip('\n')
    t = str()

    for line in sys.stdin:
        if line == 'END_OF_TEXT':
            break
        t += line.lower()

    print(len(re.findall((w), t)))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys
import re


def main():
    w = sys.stdin.readline().lower()
    t = str()

    for line in sys.stdin:
        if line == 'END_OF_TEXT':
            break
        t += line.lower()

    print(len(re.findall((w), t)))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys


def main():
    w = sys.stdin.readline().lower().strip('\n')
    s = 0

    for line in sys.stdin:
        if line == 'END_OF_TEXT':
            break
        s += line.split().count(w)

    print(s)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
W = input()
count = 0
while True:
    a = input()
    if a == "END_OF_TEXT":
        break
    a = a.split()
    for i in range(len(a)):
        if W in a[i]:
            count += 1
            
print(count)

Submission status: Wrong Answer

Solution code:
W = input().lower()
count = 0
while True:
    a = input().lower()
    if a == "end_of_text":
        break
    a = a.split()
    for i in range(len(a)):
        if W in a[i]:
            count += 1
            
print(count)

Submission status: Wrong Answer

Solution code:
W = input().lower()
count = 0
while True:
    a = input()
    if a == "END_OF_TEXT":
        break
    a = a.lower()
    a = a.split()
    for i in range(len(a)):
        if W in a[i]:
            count += 1
            
print(count)

Submission status: Wrong Answer

Solution code:
W = input().lower()
count = 0
while True:
    a = input()
    if a == "END_OF_TEXT":
        break
    a = a.lower()
    a = a.split()
    print(a)

    for i in range(len(a)):
        if W == a[i]:
            count += 1          
print(count)

Submission status: Wrong Answer

Solution code:
W = input()

T = []
while True:
	R = input()
	if R == "END_OF_TEXT":
		break
	T.append(R)

T = ''.join(T)
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input().upper()

T = []
while True:
	R = input().upper()
	if R == "END_OF_TEXT":
		break
	T.append(R)

T = ''.join(T)
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input().lower()

T = []
while True:
	R = input()
	if R == "END_OF_TEXT":
		break
	T.append(R)

T = (''.join(T)).lower()
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input().lower()

T = []
while True:
	R = input()
	if R == "END_OF_TEXT":
		break
	T.append(R)

T = (''.join(T)).lower()
T = T.split()
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input().lower()

T = []
while True:
	R = input()
	print(R)
	if R == "END_OF_TEXT":
		break
	R = R + " "
	T.append(R)

print(T)
T = (''.join(T)).lower()
print(T)
T = T.split()
print(T)
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input()
s = ""
while True:
    a = input()
    try:
        if a == "END_OF_TEXT":
            break
        else:
            s += a
            s += " "
    except:
        break

t = s.strip(".").split(" ")
print(t.count(W))

Submission status: Wrong Answer

Solution code:
w = str(input())
t = [str(c) for c in input().split()]
print(t.count(w))

Submission status: Wrong Answer

Solution code:
import sys
w = str(input())
t = [str(c) for c in sys.stdin]
print(t.count(w))

Submission status: Wrong Answer

Solution code:
str_search = input().rstrip()
int_cnt = 0

while True:
    str_line = input().rstrip()

    if str_line == "END_OF_TEXT":
        break
    int_start = 0
    

    while True:
        int_start = str_line.find(str_search, int_start)
        if int_start == -1:
            break
        else:
            int_cnt = int_cnt + 1

        int_start = int_start + 1

print(str(int_cnt))

Submission status: Wrong Answer

Solution code:
str_search = input().rstrip().upper()
int_cnt = 0

while True:
    str_line = input().rstrip().upper()

    if str_line == "END_OF_TEXT":
        break
    int_start = 0
    

    while True:
        int_start = str_line.find(str_search, int_start)
        if int_start == -1:
            break
        else:
            int_cnt = int_cnt + 1

        int_start = int_start + 1

print(str(int_cnt))

Submission status: Wrong Answer

Solution code:
str_search = input().rstrip().upper()
int_cnt = 0

while True:
    str_line = input().rstrip()

    if str_line == "END_OF_TEXT":
        break
    
    str_line = str_line.upper()
    int_start = 0
    

    while True:
        int_start = str_line.find(str_search, int_start)
        if int_start == -1:
            break
        else:
            int_cnt = int_cnt + 1

        int_start = int_start + 1

print(str(int_cnt))

Submission status: Wrong Answer

Solution code:
str_search = input().rstrip().upper()
int_cnt = 0
len_search = len(str_search)
while True:
    str_line = input().rstrip()

    if str_line == "END_OF_TEXT":
        break
    
    str_line = str_line.upper()
    int_start = 0

    while True:
        int_start = str_line.find(str_search, int_start)
        if int_start == -1:
            break
        else:
            int_cnt = int_cnt + 1
        print(str(int_start))
        int_start = int_start + len_search

print(str(int_cnt))

Submission status: Wrong Answer

Solution code:
str_search = input().rstrip().upper()
int_cnt = 0
len_search = len(str_search)
while True:
    str_line = input().rstrip()

    if str_line == "END_OF_TEXT":
        break
    
    str_line = str_line.upper()
    int_start = 0

    while True:
        int_start = str_line.find(str_search, int_start)
        if int_start == -1:
            break
        else:
            int_cnt = int_cnt + 1

        int_start = int_start + len_search

print(str(int_cnt))

Submission status: Wrong Answer

Solution code:
import re
W = input()
T = []
count = 0
while(1):
    line = input()
    if (line == "END_OF_TEXT"):
        break
    words = list(line.split())
    for word in words:
        T.append(word)
    
for word in T:
    matchOB = re.search(W, word.lower())
    if matchOB:
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
import sys

w = input()
t = sys.stdin.read()
print(t.count(w))

Submission status: Wrong Answer

Solution code:
import sys

w = input()
t = sys.stdin.read()
print(t.lower().count(w))

Submission status: Wrong Answer

Solution code:
text = ''

key= input()
while True:
    s = input()
    if s.find("END_OF_TEXT") >= 0: break
    try:
        text += s + ' '
    except:
        break

print(text.split(" ").count(key) )

Submission status: Wrong Answer

Solution code:
W = input()
print(W)
t=0

while(1):
	char_list = list(x for x in input().split())
	print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Submission status: Wrong Answer

Solution code:
W = input()
#print(W)
t=0

while(1):
	char_list = list(x.lower() for x in input().split())
	#print(char_list)
	if char_list[0] == 'end_of_text':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Submission status: Wrong Answer

Solution code:
count = 0
s = ""
array =[]
while True:
    count += 1
    if count == 1:
        s = input()
    n = input()
    if n == "END_OF_TEXT":
        break
    array.append(n)
count = 0
for i in range(len(array)):
    for i2 in array[i].split():
        if s.upper() in i2 or s.lower() in i2:
            count += 1
print(count)

Submission status: Wrong Answer

Solution code:
count = 0
s = ""
array =[]
while True:
    count += 1
    if count == 1:
        s = input()
    n = input()
    if n == "END_OF_TEXT":
        break
    array.append(n)
count = 0
for i in range(len(array)):
    for i2 in array[i].split():
        if s.upper() in i2.upper() or s.lower() in i2.lower():
            count += 1
print(count)

Submission status: Wrong Answer

Solution code:
W = input().strip()
T = ''
while True:
    t = input().strip()
    if t == 'END_OF_TEXT':
        break
    else:
        T += t

print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input().strip().lower()
T = ''
while True:
    t = input().strip()
    if t == 'END_OF_TEXT':
        break
    else:
        T += t

print(T.lower().count(W))

Submission status: Wrong Answer

Solution code:
wor = input().upper()
cou = 0

import re
while True :
    tes = input().upper()
    if tes == 'END_OF_TEXT': break
    m = re.findall(wor, tes)
    cou += len(m)

print(cou)

Submission status: Wrong Answer

Solution code:
wor = input().upper()
cou = 0

import re
while True :
    tes = input()
    if tes == 'END_OF_TEXT': break
    tes = tes.upper()
    m = re.findall(wor, tes)
    cou += len(m)
    print(m,cou,tes)

print(cou)

Submission status: Wrong Answer

Solution code:
wor = input().upper()
cou = 0

import re
while True :
    tes = input()
    if tes == 'END_OF_TEXT': break
    tes = tes.upper()
    m = re.findall(wor, tes)
    cou += len(m)

print(cou)

Submission status: Wrong Answer

Solution code:
a=raw_input().lower()
c=0
while 1:
	b=raw_input().lower()
	if b=='end_of_text':break
	for i in b.split():
		if i==a:c+=1
print c

Submission status: Wrong Answer

Solution code:
w = input()
t = ""
while True:
    tmp = input()
    t += tmp
    if tmp=="END_OF_TEXT":
        break
print(t.count(w))

Submission status: Wrong Answer

Solution code:
w = input().lower()
t = ""
while True:
    tmp = input()
    t += tmp.lower()
    if tmp=="END_OF_TEXT":
        break
print(t.count(w))

Submission status: Wrong Answer

Solution code:
word = input()
text=""

while True:
    line = input()
    if line=='END_OF_TEXT':
        break
    else:
        text += (line.lower() + " ")

print(text.count(word))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

import sys
import os


word = input().strip()
c = 0
for s in sys.stdin:
    c += s.count(word)
print(c)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

import sys
import os


word = input().strip().lower()
c = 0
for s in sys.stdin:
    s = s.lower()
    c += s.count(word)
print(c)

Submission status: Wrong Answer

Solution code:
key = input()
count = 0

while True:
    l = list(map(str, input().split()))
    count += l.count(key)
    if l[-1] == 'END_OF_TEXT':
        break

print(count)

Submission status: Wrong Answer

Solution code:
def check(s, p):
    if s == p:
        return 1
    else:
        return 0

word = input()
count = 0
while 1:
    array = input()
    if array == "END_OF_TEXT":
        break

    array.lower()
    for i in range(len(array)-len(word)+1):
        if array[i:i+len(word)] == word:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
def check(s, p):
    if s == p:
        return 1
    else:
        return 0

word = input().lower()
print(word)
count = 0
while 1:
    array = input().lower()
    if array == "end_of_text":
        break

    print(array)
    for i in range(len(array)-len(word)+1):
        if array[i:i+len(word)] == word:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
def check(s, p):
    if s == p:
        return 1
    else:
        return 0

word = input().lower()
count = 0
while 1:
    array = input().lower()
    if array == "end_of_text":
        break

    for i in range(len(array)-len(word)+1):
        if array[i:i+len(word)] == word:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
def check(s, p):
    if s == p:
        return 1
    else:
        return 0

word = input().lower()
count = 0
while 1:
    array = input().lower().split()
    if array[0] == "end_of_text":
        break

    for i in range(len(array)):
        if array[i] == word:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
word = input().lower()
count = 0
while 1:
    array = input().lower().split()
    if array[0] == "end_of_text":
        break

    for a in array:
        if a == word:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
W = input()
count = 0
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    if W in T:
        count += 1
    print(count)

Submission status: Wrong Answer

Solution code:
W = input()
count = 0
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    count += T.count(W)
    print(count)

Submission status: Wrong Answer

Solution code:
W = input()
count = 0
while True:
    T = input().split(" ")
    if T[0] == "END_OF_TEXT":
        break
    count += T.count(W)
    print(count)

Submission status: Wrong Answer

Solution code:
W = input().lower()
count = 0
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    count += T.lower().count(W)
print(count)

Submission status: Wrong Answer

Solution code:
W = input().lower()
count = 0
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    T.lower()
    count += T.count(W)
print(count)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

contents = []
counter = 0

word = input()

while True:
    text = input()
    if text == "END_OF_TEXT":
        break
    textWords = text.split()
    contents.append(textWords)

for x in contents:
    for y in textWords:
        if y == word:
            counter += 1

print(counter)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

contents = []
counter = 0

word = input()

while True:
    text = input()
    if text == "END_OF_TEXT":
        break
    textWords = text.split()
    contents.append(textWords)

for x in contents:
    for y in textWords:
        if y.lower() == word:
            counter += 1

print(counter)

Submission status: Wrong Answer

Solution code:
W=input()
T=""
while True:
    Ti = input()+" "
    if Ti != "END_OF_TEXT ":
        T+= Ti
    else:
        break
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W=input().upper()
T=""
while True:
    Ti = input().upper()+" "
    if Ti != "END_OF_TEXT ":
        T+= Ti
    else:
        break
print(T.count(W))

Submission status: Wrong Answer

Solution code:
W=input().upper()
T=""
while True:
    Ti = input()+" "
    if Ti != "END_OF_TEXT ":
        T+= Ti.upper()
    else:
        break
print(T.count(W))

Submission status: Wrong Answer

Solution code:
count = 0
W = input().lower()
T = ""
while True:
    try:
        if T == "END_OF_TEXT":
            break
        count += T.count(W)
        T = input().lower()
    except EOFError:
        break
print(count)

Submission status: Wrong Answer

Solution code:
from sys import stdin

w = input()

n = 0
for line in stdin:
    line = line.rstrip()

    if 'END_OF_TEXT' == line:
        break

    n += len(list(filter(lambda x: w == x, line.split(' '))))

print(n)

Submission status: Wrong Answer

Solution code:
W = input()
T=("")
t = input()
while t != "END_OF_TEXT":
 T += t
 t = input()

print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input()
T=("")
t = input()
while t != "END_OF_TEXT":
 T += t
 t = input()
T = T.lower()

print(T.count(W))

Submission status: Wrong Answer

Solution code:
W = input()
T = input()
count = 0
while T != 'END_OF_TEXT':
    count += T.lower().count(W.lower())
    T = input()
print(count)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

w = input().rstrip()

bun =""
a =""
while a !="END_OF_TEXT":
    a = input().rstrip()
    if a =="END_OF_TEXT":
        break

    bun += a.lower()


print(bun.count(w))

Submission status: Wrong Answer

Solution code:
import sys
P = []
W = input()
while 1:
    line = input()
    if line == "END_OF_TEXT":
        break

    P.append(line)
    
P = "".join(P)
print(P.count(W))

Submission status: Wrong Answer

Solution code:
import sys
P = []
W = input()
while 1:
    line = input()
    if line == "END_OF_TEXT":
        break
    P.append(line.lower())

P = "".join(P)
print(P.count(W))

Submission status: Wrong Answer

Solution code:
import sys
P = []
W = input()
while 1:
    line = input()
    if line == "END_OF_TEXT":
        break

    P.append(line.lower())

P = " ".join(P)
print(P.count(W))

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
while 1:
    P = input()
    if P == "END_OF_TEXT":
        break
    cnt += P.count(W)
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
while 1:
    P = input()
    if P == "END_OF_TEXT":
        break
    P = P.lower()
    cnt += P.count(W)
print(cnt)

Submission status: Wrong Answer

Solution code:
W=input()
count=0
while True:
    line=input()
    if line=="END_OF_TEXT":
        break
    count+=line.count(W)
print(count)

Submission status: Wrong Answer

Solution code:
W=input().lower()
count=0
while True:
    line=input()
    if line=="END_OF_TEXT":
        break
    count+=line.lower().count(W)
print(count)

Submission status: Wrong Answer

Solution code:
from collections import Counter
W=input().lower()
count=0
while True:
    line=input().split()
    if line==["END_OF_TEXT"]:
        break
    print(line)
    count+=Counter(map(lambda x:x.lower(),line))[W]
print(count)

Submission status: Wrong Answer

Solution code:
W = input()
T = ""
a = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break

    a += T
import re
a = re.sub(" ", "", a)
cnt = a.count(W)
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
T = ""
a = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break

    a += T
import re
a = re.sub(" ", "", a.lower())
cnt = a.count(W)
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
T = ""
a = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break

    a += T
# import re
# a = re.sub(" ", "", a)
a = a.lower()
cnt = a.count(W)
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
T = ""
a = ""
cnt = 0
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    
    a = T.lower()
    cnt += a.count(W)
print(cnt)

    # a += T
# import re
# a = re.sub(" ", "", a)
# a = a.lower()
# cnt = a.count(W)
# print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
s = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    s += T.lower()
s = list(s.split())
for S in s:
    if S == W:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
s = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    s += T.lower()
s = list(s.split())
#print(s)
for S in s:
    if S == W:
        cnt += 1
print(cnt)
# import re
# a = re.sub(" ", "", a)
# a = a.lower()
# cnt = a.count(W)
# print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
s = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    s += T.lower()
s = list(s.split())
print(s)
for S in s:
    if S == W:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
W = input()
cnt = 0
s = ""
while True:
    T = input()
    if T == "END_OF_TEXT":
        break
    s += T.lower()
s = list(s.split())
# print(s)
for S in s:
    if S == W:
        cnt += 1
print(cnt)
# import re
# a = re.sub(" ", "", a)
# a = a.lower()
# cnt = a.count(W)
# print(cnt)

Submission status: Wrong Answer

Solution code:
W=input()
try:
    a=""
    while True:
        S=input()
        if not S:
            break
        S=S.lower()
        a=a+S
except EOFError:
    pass
print(a.count(W))

Submission status: Wrong Answer

Solution code:
x=0
W=input()
S=[]
while True:
    S=input().split()
    if S==["END_OF_TEXT"]:
        break
        S=S.lower
    print(S,S.count(W))
    x+=S.count(W)
print(x)

Submission status: Wrong Answer

Solution code:
x=0
W=input()
S=[]
while True:
    S=input().split()
    if S==["END_OF_TEXT"]:
        break
        S=S.lower
    x+=S.count(W)
print(x)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
?????????????´¢
"""
w = input().strip()
s = ""
while True:
    inp = input().strip()
    if inp == "END_OF_TEXT":
        break
    s = s + " " + inp
print(s.count(w))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
?????????????´¢
"""
lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

inp = input().strip()
w = inp.translate(str.maketrans(upper,lower))
s = ""
while True:
    inp = input().strip()
    if inp == "END_OF_TEXT":
        break
    s = s + " " + inp.translate(str.maketrans(upper,lower))
print(s.count(w))