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: Accepted

Solution code:
w = input()

tlist = []
while(1):
    t = input()
    if t == "END_OF_TEXT":
        break
    t = t.lower()
    tlist.append(t)

tlist1 = " ".join(tlist)

w_list = tlist1.split()

print(w_list.count(w))

Submission status: Accepted

Solution code:
w = input()
cnt = 0

while True:
    t = input()
    if t == 'END_OF_TEXT':
        break
    else:
        cnt += t.lower().split().count(w)
print(cnt)

Submission status: Accepted

Solution code:
import sys

key = input().lower()
count=0
while(1):
    W=(input().split())
    for str in W:
        if(str=="END_OF_TEXT"):
            print(count)
            sys.exit()
        if(str.lower()==key):
            count+=1

Submission status: Accepted

Solution code:
W = input().upper()
lst = []

while True:
    s = input()
    if s == "END_OF_TEXT": break
    lst.extend(s.upper().split())

print(len([x for x in lst if x == W]))

Submission status: Accepted

Solution code:
W = input()
import sys
T = sys.stdin.readlines()
c = 0
for line in T:
    line1 = line.lower()
    line2 = line1.split()
    
    if "END_OF_TEXT" in line:
        break
    c += line2.count(W)
print(c)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

# ITP1_9_A
W=input()
count=0
while True:
    N=input().split()
    if str(N[0])=="END_OF_TEXT":
        break
    for n in N:
        if W==n.lower():
            count+=1

print(count)

Submission status: Accepted

Solution code:
word=input()
sentence=[]
while True:
	a=input().split()
	if 'END_OF_TEXT' in a:
		break
	else:
		for i in a:
			sentence.append(i.lower())
print(sentence.count(word))

Submission status: Accepted

Solution code:
p = input().lower()
n = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
    for w in line.lower().split():
        if p == w:
            n += 1
print(n)

Submission status: Accepted

Solution code:
w = input().lower()
ans = 0
while True:
    tmp = input()
    if tmp =="END_OF_TEXT":
        break
    tmp = tmp.lower().split()
    ans += tmp.count(w)


print(ans)

Submission status: Accepted

Solution code:
W = input()
T = []
len_w = len(W)
count = 0

str_in = input()
while (str_in != 'END_OF_TEXT'):
    T.append(str_in.lower().split())
    str_in = input()

for item in T:
    for i in item:
        if (i == W):
            count += 1
            
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

w = input().lower()
line = sys.stdin.read()
x = line[0:line.find('END_OF_TEXT')].lower().split()
print(x.count(w))

Submission status: Accepted

Solution code:
from itertools import chain

target = input().lower()
sentence = []

while True:
  line = input()
  if line == 'END_OF_TEXT':
    break
  sentence.append(line.split())

flatten_list = list(chain.from_iterable(sentence))
word_list = [word.strip(',.') for word in flatten_list]
word_list = [word.lower() for word in word_list]
print(len(list(filter(lambda word: word == target, word_list))))

Submission status: Accepted

Solution code:
import sys

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


P = str(input()).upper()
line = []

while True:
    tmp_line = str(input())
    if tmp_line == 'END_OF_TEXT':
        break
    line += tmp_line.upper().split()

ans = 0

for tmp_word in line:
    if tmp_word == P:
        ans += 1

print("%d"%(ans))

Submission status: Accepted

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

T = [t.rstrip(",.") for t in T.lower().split()]
print(T.count(W))

Submission status: Accepted

Solution code:
word = str(input()).lower()
Text = []
while True:
    A = list(map(str, input().split() ) )
    if A == ["END_OF_TEXT"]:
        break
    Text.append(A)

for i in range(len(Text)):
    for k in range(len(Text[i])):
        Text[i][k] = Text[i][k].lower()


count = 0
for i in range (len(Text)):
    count = count + Text[i].count(word)

print(count)

Submission status: Accepted

Solution code:
W=input()
W=W.lower()
list1=[]

for i in range(1001):
    S=input()
    if S=="END_OF_TEXT":
        break
    else:
        S=S.lower()
        S=S.rstrip().split(" ")
        for j in range(len(S)):
            list1.append(S[j])
print(list1.count(W))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().lower()
c = []
d = []
while True:
    b = input()
    if b == "END_OF_TEXT":
        break
    else:
        e = b.lower().split()
        k = e.count(a)
        c.append(k)
f = sum(c)
print(f)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
src = input().lower()
string = []

while True:
    temp = input()
    if 'END_OF_TEXT' == temp:
        break
    else:
        string.extend(list(map(lambda x:x.lower(), temp.split())))

print(string.count(src))

Submission status: Accepted

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

import sys

if __name__ == '__main__':
    w = raw_input()
    t = reduce(lambda a,b: a+b, sys.stdin).lower()
    print len(filter(lambda x: x==w, t.split()))

Submission status: Accepted

Solution code:
word = input().lower()
text = []
c = 0
while True:
    read = input().split()
    if read[0] == 'END_OF_TEXT':
        break
    else:
        text.append(read)
for i in text:
    for n in i:
        if word == n.lower():
            c += 1
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W = input().lower()
counter = 0
T = input()
while not T == 'END_OF_TEXT':
	T = T.lower()
	li = T.split(' ')
	for i in li:
		if i == W: counter += 1
	T = input()
print(counter)

Submission status: Accepted

Solution code:
word = input()
tmp = []
num = 0
for looop in range(0,100000):
    tmp = input().split()
    if tmp[0] == 'END_OF_TEXT':
        break
    else:
        for x in range(len(tmp)):
            if word.lower() == tmp[x].lower():
                num += 1
print(num)

Submission status: Accepted

Solution code:
cnt = 0
W = raw_input().upper()
while True:
    s = raw_input().split(" ")
    if s == ["END_OF_TEXT"]:
        break

    cnt += map(str.upper, s).count(W)

print cnt

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
	int count = 0;
	string W;
	string t;
	cin >> W;
	while (cin >> t, t != "END_OF_TEXT")
	{
		transform(t.begin(), t.end(), t.begin(), ::tolower);
		if (t == W)
		{
			count++;
		}
	}
	cout << count << endl;
}

Submission status: Runtime Error

Solution code:
def main():

    Counter = 0
    Text_W = input()
    while True:
        Text_T = input().lower()
        if "END_OF_TEXT" in Text_T:
            temp = Text_T.split()
            for i in range(len(temp)):
                Counter += 1 if Text_W == temp[i] else 0
            break
        else:
            temp = Text_T.split()
            for i in range(len(temp)):
                Counter += 1 if Text_W == temp[i] else 0

    print (Counter)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import re
w = input()
t = ''
while True:
    s = input()
    if s == 'END_OF_TEXT':
        break
    t += s

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

Submission status: Runtime Error

Solution code:
import re
w = input().lower()
t = ''
while True:
    s = input().lower()
    if s == 'END_OF_TEXT':
        break
    t += s

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

Submission status: Runtime Error

Solution code:
w = input()
cnt = collections.Counter()
while True:
    s = [1 if i.lower() == w else 'fin' if i == 'END_OF_TEXT' else 0 for i in input().split()]
    if 'fin' in s:
        break
print(s.count(1))

Submission status: Runtime Error

Solution code:
target = input()
text = input()
text = input()
text = input()
text = input()
text = input()
text2 = text.replace('\n',' ')
sentenceList = text2.split()
count = 0
for word in sentenceList:
 if(word.lower() == target):
  count+=1
print(count)

Submission status: Runtime Error

Solution code:
target = input()
text = input()
text = input()
text = input()
text = input()
#text = input()
text2 = text.replace('\n',' ')
sentenceList = text2.split()
count = 0
for word in sentenceList:
 if(word.lower() == target):
  count+=1
print(count)

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.read().split()
print(s[1:].split().count(s[0]))

Submission status: Runtime Error

Solution code:
package main

import (
	"fmt"
	"os"
	"bufio"
	"strings"
)

func main(){
	var n int = 0
	var w string
	sc := bufio.NewScanner(os.Stdin)
	sc.Split(bufio.ScanWords)
	fmt.Scan(&w)
	for {
		sc.Scan()
	    t := sc.Text()
		if t == "END_OF_TEXT" {
			break
		}
		t = strings.ToLower(t)
		if t == w {
			n++
		}
	}
	fmt.Println(n)
}

Submission status: Runtime Error

Solution code:
W = input().rstrip()
text = ""
while True:
    line = input().rstrip()
    if line == "END_OF_TEXTS":
        break
    text += line
print(text.count(W))

Submission status: Runtime Error

Solution code:
W = input().rstrip()
text = ""
while True:
    line = input().rstrip()
    text += line if line == "END_OF_TEXTS": break
print(text.count(W))

Submission status: Runtime Error

Solution code:
w=input()
ll=list()
while True:
    T=input()
    T=T.lower()
    if T=="END_OF_TEXT":
        break
    t=T.split()
    for i in t:
        ll.append(i)
ans=ll.count(w)
print(ans)

Submission status: Runtime Error

Solution code:
key_word = input().lower()
counter = 0
while True:
    sentences = input().lower().split()
    if sentences == ['END_OF_TEXT']:
        break
    for sent in sentences:
        if sent == key_word:
            counter += 1
print(counter)

Submission status: Runtime Error

Solution code:
a = input()
cnt = 0
while 1:
    c = input().lower()
    if c = end_of_text:
        break
    cnt = c.split().count(a)
print(cnt)

Submission status: Runtime Error

Solution code:
a = input()
cnt = 0
while 1:
    c = input().lower()
    if c == end_of_text:
        break
    cnt = c.split().count(a)
print(cnt)

Submission status: Runtime Error

Solution code:
a = input()
cnt = 0
while 1:
    c = input().lower()
    if c = 'end_of_text':
        break
    cnt += c.split().count(a)
print(cnt)

Submission status: Runtime Error

Solution code:
#coding: UTF-8

word = input()
cnt = 0

while True:
    sentence = list(map(str, input().split()))
    for i in range(len(sentence)):
        if sentence[i] == 'END_OF_TEXT':
            break
        elif word == sentence[i]:
            cnt += 1
        else:
            pass

print(ctn)

Submission status: Runtime Error

Solution code:
w = input()
li = list(input().split().swapcase())
cnt = 0
for i in range(len(li)):
    if w ==li[i]:
        cnt +=1
print(cnt)

Submission status: Runtime Error

Solution code:
w = input()
li = list(input().split().lower())
cnt = 0
for i in range(len(li)):
    if w ==li[i]:
        cnt +=1
print(cnt)

Submission status: Runtime Error

Solution code:
W = input()
import sys
T = []
for l in sys.stdin:
    T.append(int(l))

num = 0
for i in range(len(T)):
    while i.find(W) != -1:
        if i.find(W) != -1:
            num += 1
            i.pop(i.find(W))
print(num)

Submission status: Runtime Error

Solution code:
W = input()
import sys
T = []
for i in range(4):
    T.append(input())
# for l in sys.stdin:
#     T.append(int(l))

num = 0
for i in T:
    while i.find(W) != -1:
        num += 1
        i = i.replace(W, ' ', 1)
print(num)

Submission status: Runtime Error

Solution code:
W = input()
import sys
T = []
# for i in range(4):
#     T.append(input())
for l in sys.stdin:
    T.append(int(l))

num = 0
for i in T:
    while i.find(W) != -1:
        num += 1
        i = i.replace(W, ' ', 1)
print(num)

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
import sys

W = input()
# T = sys.stdin.read()
T = []
for i in range(4):
    a = input()
    a = a.replace(" ", "")  
    T.append(a)

print(T)

num = 0
for i in T:
    while i.lower().find(W) != -1:
        num += 1
        i = i.lower().replace(W, ' ', 1)
print(num)

Submission status: Runtime Error

Solution code:
import sys

W = input()
T = sys.stdin.read()
for i in range(len(T)):
    T[i] = T[i].replace(" ", "")
# T = []
# for i in range(4):
#     a = input()
#     a = a.replace(" ", "")  
#     T.append(a)

num = 0
for i in T:
    while i.lower().find(W) != -1:
        num += 1
        i = i.lower().replace(W, ' ', 1)
print(num)

Submission status: Runtime Error

Solution code:
target = input()
data = ""
while True:
    string = input()
    if(string == "END_OF_FILE"): break
    data += string

print("%d" %(data.lower().count(target.lower())))

Submission status: Runtime Error

Solution code:
target = input()
data = ""
while True:
    tmp = input()
    if(tmp == "END_OF_FILE"): break
    data += tmp

print("%d" %(data.lower().count(target.lower())))

Submission status: Runtime Error

Solution code:
key = raw_input().upper()
c = ''
while True:
    s = raw_input()
    if s == 'END_OF_TEXT':
        break
    c = c + ' ' + s.upper()
    
total = 0
ks = key[0]
for i in range(len(c)):
    if c[i] == ks:
        cnt = 0
        for k in range(len(key)):
            if c[i+k] == key[k]:
                cnt = cnt + 1
        if cnt == len(key):
               total = total + 1
                
print total

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
        int ans=0;
        string w;
        cin>>w;
        transform(w.begin(), w.end(), w.begin(), ::toupper);
        for(;;){
                string chk;
                cin>>chk;
                if(chk=="END_OF_TEXT")break;
                transform(chk.begin(), chk.end(), chk.begin(), ::toupper);
                if(chk==w)ans+=1;
        }
        cout<<ans<<endl;
        return 0;
}

Submission status: Runtime Error

Solution code:
import sys

keyword = input().lowercase()
count = 0
for line in sys.stdin:
    count += sum([1 for word in line.lowercase().split() if word == keyword])
    
print(count)

Submission status: Runtime Error

Solution code:
target = input()

count = 0
while True:
    line = input().lower
    if line == 'END_OF_TEXT':
        break

    for word in line.split():
        if word.lower == target.lower:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
T = []
while True:
    try:
        W = raw_input()
        T.append(raw_input().split())
        if W == 'END_OF_TEXT':
            break
    except EOFError:
        break
        
count = 0
for word in T:
    if word.lower() == W.lower():
        count +=1
print count

Submission status: Runtime Error

Solution code:
W = raw_input()
T = []
while True:
    t = raw_input().split()
    if t == 'END_OF_TEXT':
        break
    T.append(t)

tot = 0
for w in T:
    if W in w:
        tot+=1
print tot

Submission status: Runtime Error

Solution code:
W = raw_input()
T = []
while True:
    t = raw_input().split()
    if t == 'END_OF_TEXT':
        break
    T.append(t)

tot = 0
for w in T:
    if W.lower() in w.lower():
        tot+=1
print tot

Submission status: Runtime Error

Solution code:
#coding:utf-8
#1_9_A 2015.4.10
w = input().lower()
c = 0
while True:
    t = input()
    if 'END_OF_TEXT' in t:
        break
    c += t.lower().split()lower().count(w)
print(c)

Submission status: Runtime Error

Solution code:
c = 0
result = 0
while:
    st = raw_input()
    if c = 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        if s_str in str:
            result = result + 1
        else:
            pass
print result

Submission status: Runtime Error

Solution code:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        c = c+1
        if s_str in st:
            result = result + st.count(s_str)
        else:
            pass
print result

Submission status: Runtime Error

Solution code:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        c = c+1
        if s_str in st:
            result = result + st.split(' ').count(s_str)
        else:
            pass
print result

Submission status: Runtime Error

Solution code:
import sys

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
    lines = sys.stdin.readline().rstrip()
    if not lines:
		break	
    words = lines.split( " " )
    for i in range( len( words ) ):
    	if w == words[i].lower():
			cnt = cnt + 1			
print( cnt )

Submission status: Runtime Error

Solution code:
import sys
w = sys.stdin.readline().strip().lower()
t = sys.stdin.read().lower.split()
print(w, t)

Submission status: Runtime Error

Solution code:
while True :
	count = 0
	w = raw_input()
	if w=='END_OF_TEXT':
		break
	else :
		a_list = w.split()
		 for i in a_list:
			if w in i :
				count += 1
		print(count)

Submission status: Runtime Error

Solution code:
word=input()
while(1):
  sentence=input()
  if sentence == "END_OF_TEXT"
    break
  
  snt=sentence.lower()


cnt=sentence.count(word)
print(cnt)

Submission status: Runtime Error

Solution code:
word=raw_input()
sen=[]
ct=0
while 1:
    sen=map(str,raw_input().split(" "))
    if sen[-1:0]=="END_OF_TEXT":
        break
    else:continue
for i in sen:
    i.lower()
    if i==word:
        ct+=1
    else:continue
print(ct)

Submission status: Runtime Error

Solution code:

w = input().casefold()
word_count = 0
while True:
    line = input()
    if line == "END_OF_TEXT":
        break
    word = line.split().casefold()
    word_count += word.count(w)
print(word_count)

Submission status: Runtime Error

Solution code:

w = input().casefold()
word_count = 0
while True:
    line = input().casefold()
    if line == "END_OF_TEXT":
        break
    word = line.split()
    word_count += word.count(w)
print(word_count)

Submission status: Runtime Error

Solution code:
word = input()
number = 0
while True:
    row = input()
    if row == 'END_OF_TEXT':
        break
    row.replace('.', ' ')
    row.replace("'", " ")
    row.replace('-', ' ')
    wordlist = list(row.lower().split())
    number += wordlist.count(word.lower())
print(number

Submission status: Runtime Error

Solution code:
a = raw_input().lower()
s = 0
while True:
    b = raw_input().lower()
    if b == 'END_OF_TEXT':
        break
    s += b.count(a)
print s

Submission status: Runtime Error

Solution code:
# 19-String-Finding_a_Word.py

# ?????????????´¢
# ??????????????? W ??¨?????? T ????????????????????????T ??????????????? W ?????°???????????????????????°?????????????????????????????????
# ?????? T ????????????????????????????????????????????§????????????????????????????????? Ti ??¨????????????
# ???????????? Ti ?????????????????? W ??¨??????????????????????????°??????????????????
# ???????????§????????¨?°???????????????\???????????????

# Constraints
# W????????????????????????10????¶????????????????
# T??????????????????????????????????????????1000????¶????????????????

# Input
# ?????????????????? W ????????????????????????
# ?¶???????????????°????????????????????£??????????????????????????????
# END_OF_TEXT ??¨??????????????????????????????????????????????????????

# Output
# ?????? W ?????°???????????????????????????

# 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
# Note

import re

count=0

w = input().lower()

while 1:
	string = input().lower()
	if string=="END_OF_TEXT":
		break;

	string=string.split()
	for i in string:
		count += w==i

print(count)

Submission status: Runtime Error

Solution code:
target=raw_input()
ct=0
flag=0
while True:
	line=raw_input().split(" ")
	for i in line:
		if i.lower()==target.lower:
			ct+=1
		elif i.lower()=="END_OF_TEXT":
			print ct
			flag=1
	if flag==1:
		break

Submission status: Runtime Error

Solution code:
W = input()

while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.split():
        if s == W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break
        
    for s in line.split():
        if s == W:
            count += 1
        
print(count)

Submission status: Runtime Error

Solution code:
W = input()

while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
W =input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s = W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
w = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break
    for s in line.lower()split():
         count += 1
print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s = W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
W = input()

while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for  s in line.lower().split():
        if s == W:
            count += 1
            
print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break
    for s in line.lower()split():
        if s == W:        
            count += 1


print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
    
    for s in line.lower.split():
        if s == W:
            count += 1
            
        
    
print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
   
     for s in line.lower()split():
        if s == W:        
            count += 1


print(count)

Submission status: Runtime Error

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

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Submission status: Runtime Error

Solution code:
W = input()
count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower.split():
        if s == W:
            count += 1
print(count)

Submission status: Runtime Error

Solution code:
w = input()
while True
    line = input()
    if line == 'END_OF_TEXT':
        break

     for s in line.lower().split():
         if s == W:
             count += 1

print(count)

Submission status: Runtime Error

Solution code:
w = input().lower()
while True
    line = input()
    if line == 'END_OF_TEXT':
        break

     for s in line.lower().split():
         if s == W:
             count += 1

print(count)

Submission status: Runtime Error

Solution code:
W = input().lower()
while True
    line = input()
    if line == 'END_OF_TEXT':
        break

     for s in line.lower().split():
         if s == W:
             count += 1

print(count)

Submission status: Runtime Error

Solution code:
w= input().lower()
 
count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
 
    for s in line.lower().split():
        if s == W:
            count += 1
 
print(count)

Submission status: Runtime Error

Solution code:
W = input()
 
count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
     
    for s in line.lower().split():
        if s == W:
            count += 1
             
         
     
print(count

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
w = raw_input()
c = 0
while 1:
 t = raw_input().lower()
 if t=="END_OF_TEXT": break
 tt = t.split()
 c += tt.count(w)
print c

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
w = raw_input().upper()
c = 0
while 1:
 t = raw_input().upper()
 if t=="END_OF_TEXT": break
 tt = t.split()
 c += tt.count(w)
print c

Submission status: Runtime Error

Solution code:
s = raw_input()
s = s[:-1]
cnt = 0
while True:
	text = raw_input()
	if 'END_OF_TEXT' == text[0:-1]:
		break
	while text.find(s)>=0:
		text = text[text.find(s)+len(s):]
		cnt += 1
print cnt

Submission status: Runtime Error

Solution code:
W = raw_input().lower()
T= ""
while True:
    t = raw_input().lower()
    if t == "END_OF_TEXT":
        break;
    else:
        T += t

print(t.count(W))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.')
  s = list(s.split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.'))
  s.remove('.')
  s.joint(' ')
  s = list(s.split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.'))
  s.remove('.')
  s = list(s[0].split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split('.'))
  s.remove('')
  s = list(s[0].split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split(''))
  s.remove('')
  s = list(s[0].split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

Solution code:
a = []
while 1:
 s = input()
 if s == 'END_OF_TEXT':
  break
 else:
  s = list(s.split(''))
  s = list(s[0].split())
  a.append(s)

print(a.count(a[0]) - 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
W=raw_input()
Text=[]
while True:
    text=raw_input()
    if text=='END_OF_TEXT':
        break
    Text.extend(text.split())
print('%d'%Text.count(W))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
W = input()

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
cnt = 0
s = input().lower()
while 1:
    line = input()
    if W == "END_OF_TEXT":
        break
    for s in line.lower().split():
print(cnt)

Submission status: Runtime Error

Solution code:
cnt = 0
s = input().lower()
while 1:
    line = input()
    if line == "END_OF_TEXT":
        break
    for s in line.lower().split():
print(cnt)

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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

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: Runtime Error

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)