Problem:


Score : 100 points

Problem Statement

CODE FESTIVAL 2016 is going to be held. For the occasion, Mr. Takahashi decided to make a signboard.

He intended to write CODEFESTIVAL2016 on it, but he mistakenly wrote a different string S. Fortunately, the string he wrote was the correct length.

So Mr. Takahashi decided to perform an operation that replaces a certain character with another in the minimum number of iterations, changing the string to CODEFESTIVAL2016.

Find the minimum number of iterations for the rewrite operation.

Constraints

S is 16 characters long.

S consists of uppercase and lowercase alphabet letters and numerals.

Input

Inputs are provided from Standard Input in the following form.

S

Output

Output an integer representing the minimum number of iterations needed for the rewrite operation.

Sample Input 1

C0DEFESTIVAL2O16

Sample Output 1

2

The second character 0 must be changed to O and the 14th character O changed to 0.

Sample Input 2

FESTIVAL2016CODE

Sample Output 2

16



Sample input:
C0DEFESTIVAL2O16


Sample output:
2

Submission status: Accepted

Solution code:
S = input()
A = "CODEFESTIVAL2016"
ans = 0
for s, a in zip(S, A):
    ans += (s != a)

print(ans)

Submission status: Accepted

Solution code:
s = input()
correct_str = 'CODEFESTIVAL2016'

cnt = 0
for i in range(len(correct_str)):
    if correct_str[i] != s[i]:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
SS = list("CODEFESTIVAL2016")
S = list(input())
c = 0
for i in range(16):
	if SS[i] != S[i]:
		c += 1
print(c)

Submission status: Accepted

Solution code:
a = "CODEFESTIVAL2016"
b = raw_input()
r = 0
for i in xrange(len(a)):
	if a[i] != b[i]:
		r += 1
print r

Submission status: Accepted

Solution code:
# coding: utf-8
s = input()
origin = list('CODEFESTIVAL2016')
ans = 0

for index, ch in enumerate(list(s)):
    if origin[index] != ch:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
s=input()
right="CODEFESTIVAL2016"
a=0
for i in range(len(s)):
    if s[i]!=right[i]:
        a=a+1
print(a)

Submission status: Accepted

Solution code:
s = input()
t = 'CODEFESTIVAL2016'
ans = 0

for i in range(len(s)):
  if not s[i] == t[i]:
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
s=input()
a=0
b='CODEFESTIVAL2016'
for i in range(16):
    if s[i]!=b[i]:
        a+=1
print(a)

Submission status: Accepted

Solution code:
S = input()
T = "CODEFESTIVAL2016"
ans = 0
for k in range(16):
    if S[k] != T[k]:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
S = input().strip()
ans = 0
for c1,c2 in zip(S,'CODEFESTIVAL2016'):
  if c1 != c2:
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
s=input()
correct = "CODEFESTIVAL2016"
ans = 0
for i in range(len(s)):
    ans += correct[i]!=s[i]
print(ans)

Submission status: Accepted

Solution code:
s = input().rstrip()
t = 'CODEFESTIVAL2016'
count = 0
for i in range(len(s)):
  if s[i] != t[i]:
    count += 1
print(count)

Submission status: Accepted

Solution code:
s = input()
x,ans = "CODEFESTIVAL2016",0
for i in range(16):
  if x[i]!=s[i]: ans += 1
print(ans)

Submission status: Accepted

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

# CODE FESTIVAL 2016 qual A
# Problem A

if __name__ == '__main__':
    original = 'CODEFESTIVAL2016'
    s = input()
    count = 0

    for si, original_s in zip(s, original):
        if si != original_s:
            count += 1

    print(count)

Submission status: Accepted

Solution code:
s=input()
ss="CODEFESTIVAL2016"
count=0
for i in range(16):
    if s[i]!=ss[i]:
        count+=1

print(count)

Submission status: Accepted

Solution code:
ans = 0

for i, j in zip(input(), 'CODEFESTIVAL2016'):
    if i != j:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
s="CODEFESTIVAL2016"
t=input()
a=0
for c, d in zip(s, t):
  if c != d:
    a += 1
print(a)

Submission status: Accepted

Solution code:
s = input()
s2 = "CODEFESTIVAL2016"

ans=0
for i in range(16):
    if s[i]!=s2[i]: ans+=1
        
print(ans)

Submission status: Accepted

Solution code:
b ='CODEFESTIVAL2016'

a = input()

count = 0
for i in range(16):
    if a[i] != b[i]:
        count += 1
print(count)

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

s = arr_data[0][0]
str="CODEFESTIVAL2016"
#print(s)

cnt=0
for i in range(16):
    
    if s[i]!=str[i]:
    
        cnt+=1
        
print(cnt)

Submission status: Accepted

Solution code:
s=input()
co="CODEFESTIVAL2016"
cou=0
for i in range(len(s)):
  if(s[i]!=co[i]):cou+=1
print(cou)

Submission status: Accepted

Solution code:
s = str(input())
ss = "CODEFESTIVAL2016"
cou = 0
for i in range(16):
  if s[i] != ss[i]:
    cou += 1
print(cou)

Submission status: Accepted

Solution code:
def main():
    S = input()

    right = "CODEFESTIVAL2016"
    ans = sum(c1 != c2 for c1, c2 in zip(S, right))
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=input()
T="CODEFESTIVAL2016"
N=0
for i in range(16):
    if S[i]!=T[i]:
        N+=1
print(N)

Submission status: Accepted

Solution code:
s=list('CODEFESTIVAL2016');t=list(input());print(sum([1 for i in range(16) if s[i]!=t[i]]))

Submission status: Accepted

Solution code:
print(sum([1 if a!=b else 0 for a,b in zip('CODEFESTIVAL2016',input())]))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    T = "CODEFESTIVAL2016"

    S = input()

    ans = sum(cs != ct for cs,ct in zip(S,T))
    print(ans)

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
s = input()
cf = "CODEFESTIVAL2016"
t = 0
for i in range(16):
    t += 1 if s[i] != cf[i] else 0
print(t)

Submission status: Accepted

Solution code:
s=input();a=0
for i in range(16):a+=[0,1][s[i]!='CODEFESTIVAL2016'[i]]
print(a)

Submission status: Accepted

Solution code:
print(sum([1 if a!=b else 0 for (a,b) in zip(input(),'CODEFESTIVAL2016')]))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
print(sum([S[i] != 'CODEFESTIVAL2016'[i] for i in range(16)]))

Submission status: Accepted

Solution code:
s=input()
t='CODEFESTIVAL2016'
a=0
for i in range(16):
  if s[i]!=t[i]:
    a+=1
print(a)

Submission status: Accepted

Solution code:
def solve():
    S = input()
    ans = 0
    for i, j in zip(S, "CODEFESTIVAL2016"):
        if i != j:
            ans += 1
    print(ans)
        
solve()

Submission status: Accepted

Solution code:
S = input()
C = "CODEFESTIVAL2016"
ret = 0
 
for s, c in zip(S, C):
    ret += 0 if s==c else 1
 
print(ret)

Submission status: Accepted

Solution code:
S = input()
C = "CODEFESTIVAL2016"
ret = 0

for s, c in zip(S, C):
    ret += 0 if s==c else 1

print(ret)

Submission status: Accepted

Solution code:
def solve():
    S = list(input())
    answer = list("CODEFESTIVAL2016")
    cnt = 0

    for s, a in zip(S, answer):
        if s != a:
            cnt += 1
        else:
            pass

    print(cnt)


solve()

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
gosa = 1.0 / 10**10
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    t = 'CODEFESTIVAL2016'
    s = S()
    r = 0
    for i in range(16):
        if t[i] != s[i]:
            r += 1
    return r


print(main())

Submission status: Accepted

Solution code:
S = raw_input()
print sum(s!=t for s, t in zip(S, 'CODEFESTIVAL2016'))

Submission status: Accepted

Solution code:
print(len(list(filter(lambda a:a[0]!=a[1],zip(input(),'CODEFESTIVAL2016')))))

Submission status: Accepted

Solution code:
w="CODEFESTIVAL2016"
S=raw_input()
c=0
for i in xrange(16):
    if w[i] != S[i]: c+=1
print c

Submission status: Accepted

Solution code:
s=raw_input()
true_s='CODEFESTIVAL2016'

error_number=0

for i in range(16):
    if s[i]!=true_s[i]:
        error_number+=1


print error_number

Submission status: Accepted

Solution code:
a = "CODEFESTIVAL2016"
b = input()
c = 0
for d,e in zip(a,b):
    if d!=e:
        c+=1
print(c)

Submission status: Accepted

Solution code:
string=input()
string_correct=("CODEFESTIVAL2016")
count=0
for i in range(16):
    if string[i]!= string_correct[i]:
        count += 1
print(count)

Submission status: Accepted

Solution code:
correct_str_array = 'CODEFESTIVAL2016'
mistake_str_array = raw_input()
rewrite_count = 0
for n in range(0, 16):
    if(correct_str_array[n] != mistake_str_array[n]):
        rewrite_count = rewrite_count + 1
print rewrite_count

Submission status: Accepted

Solution code:
import sys


def dump(x):
    print >> sys.stderr, "{0}".format(x)

S = raw_input()
correct = "CODEFESTIVAL2016"
false_count = 0

for i in range(min(len(S), len(correct))):
    if S[i] != correct[i]:
        false_count += 1

print(false_count)

Submission status: Accepted

Solution code:
import bisect
import sys
import math
import itertools
sys.setrecursionlimit(10000)

INF = float('inf')

# input macro
def i():
    return int(raw_input())
def ii():
    return map(int,raw_input().split(" "))
def s():
    return raw_input()
def ss():
    return raw_input().split(" ")
def slist():
    return list(raw_input())
#

def join(s):
    return ''.join(s)

#iterate macro
def piter(n,m):
    return itertools.permutations(n,m)
def citer(n,m):
    return itertools.combinations(n,m)

#modulo macro
def modc(a,b,m):
    c = 1
    for i in xrange(b):
        c = c * (a - i) % m
        c = c * modinv(i + 1,m) % m
    return c
 
def gcd(a, b):
    (x, lastx) = (0, 1)
    (y, lasty) = (1, 0)
    while b != 0:
        q = a // b
        (a, b) = (b, a % b)
        (x, lastx) = (lastx - q * x, x)
        (y, lasty) = (lasty - q * y, y)
    return (lastx, lasty, a)
 
def modinv(a, m):
    (inv, q, gcd_val) = gcd(a, m)
    return inv % m

#bisect macro
def index(a, x):
    #Locate the leftmost value exactly equal to x
    i = bisect_left(a, x)
    if i != len(a) and a[i] == x:
        return i
    return -1

#memoize macro
def memoize(f):
    cache = {}
    def helper(*args):
        if args not in cache:
            cache[(args)] = f(*args)
        return cache[args]
    return helper

@memoize
def nck(a,b,m):
    b = min([a-b,b])
    if (b>a or b<0 or a<0):
        return 0
    elif a == 0:
        return 1
    return (nck(a-1,b-1,m)+nck(a-1,b,m)) % m

nh=zip([1,0,-1,0],[0,1,0,-1])

###########

s=slist()
a=list("CODEFESTIVAL2016")
cnt=0
for j in range(16):
    if s[j]!=a[j]:
        cnt+=1

print cnt

Submission status: Accepted

Solution code:
s = input()
expected = "CODEFESTIVAL2016"
print(sum(1 for c in range(0,len(s)) if s[c] != expected[c]))

Submission status: Accepted

Solution code:
from sys import stdin
a = 'CODEFESTIVAL2016'
l = len(a)
b = stdin.readline().strip()
ans = 0
for i in xrange(l):
 if a[i]!=b[i]:
  ans+=1
print ans

Submission status: Accepted

Solution code:
print(sum(map(lambda a,b:a!=b,'CODEFESTIVAL2016',input())))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import operator
print(sum(map(operator.ne, 'CODEFESTIVAL2016',input())))

Submission status: Accepted

Solution code:
correct=list("CODEFESTIVAL2016")
wrong=list(input())
ans=0
for i in range(len(correct)):
    if correct[i]!=wrong[i]:
        ans+=1
print(ans)

Submission status: Accepted

Solution code:
s = input()
count = 0;
anser = "CODEFESTIVAL2016"
for i in range(0,16):
	if not s[i] == anser[i]:
		count+=1
print(count)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

from __future__ import division, print_function, absolute_import, unicode_literals

correct = 'CODEFESTIVAL2016'
s = input()
cnt = 0
for a, b in zip(correct, s):
    if a != b:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
str = "CODEFESTIVAL2016"
s =input()
cnt = 0
for i in range(16):
  if s[i]!=str[i]:
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
cor_text="CODEFESTIVAL2016"
raw_text=raw_input()
a=list(raw_text)
b=list(cor_text)

time=0

for i in range(16):
    if a[i]!=b[i]:
        time+=1

print time

Submission status: Accepted

Solution code:
S = "CODEFESTIVAL2016" 
line = input()
 
sum = 0
for i in range(len(line)):
   if line[i] == S[i]:
        sum += 1
sum = 16 - sum
print(sum)

Submission status: Accepted

Solution code:
s = input()
correct_s = 'CODEFESTIVAL2016'

ans = 0
for i in range(16):
    if s[i] != correct_s[i]:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
S = input()
res = 0
target = "CODEFESTIVAL2016"
for index in range(len(S)):
    if S[index] != target[index]:
        res += 1
print(res)

Submission status: Accepted

Solution code:
def string_trnase(s):
    answer = 'CODEFESTIVAL2016'
    iters = 0
    s = list(s)
    for i in range(0, 16):
        if s[i] != answer[i]:
            iters += 1
    print(iters)



string_trnase(input())

Submission status: Accepted

Solution code:
s = input()

standard = 'CODEFESTIVAL2016'

count = 0
for i in range(16):
    if s[i] != standard[i]:
        count = count + 1
print(count)

Submission status: Accepted

Solution code:
# def makelist(n, m):
# 	return [[0 for i in range(m)] for j in range(n)]

# n = int(input())
# a, b = map(int, input().split())
# s = input()


rei = "CODEFESTIVAL2016"
s = input()

ans = 0
for i in range(len(s)):
	if rei[i] != s[i]:
		ans += 1

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

ts = 'CODEFESTIVAL2016'
S = input()
count = 0

for i in range(len(S)):
    if ts[i] is not S[i]:
        count += 1
print(count)

Submission status: Accepted

Solution code:
#! python3


correct = "CODEFESTIVAL2016"
incNum = 0

inStr = input()

for i in range(0, len(inStr)):
	if correct[i] != inStr[i]:
		incNum += 1

print(incNum)

Submission status: Accepted

Solution code:
target = 'CODEFESTIVAL2016'

s = raw_input()
count = 0

for i in range(len(s)):
    if s[i] != target[i]:
        count += 1

print count

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
source = 'CODEFESTIVAL2016'
count = 0
# Get a string.
s = raw_input()
# Do a character-wise comparison from source to target string
for i in range(len(s)):
    if s[i] != source[i]:
        count += 1
# Add extra operations for strings of uneven length.
if len(s) != len(source):
    count += abs(len(source) - len(s))
# Output.
print count

Submission status: Accepted

Solution code:
ref = "CODEFESTIVAL2016"
inp = input()
cnt = 0
for r ,i in zip(ref, inp):
    if r != i:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
s=list(raw_input())
c=list("CODEFESTIVAL2016")
t=0
for i in range(16):
    if s[i]!=c[i]:
        t+=1
print(t)

Submission status: Accepted

Solution code:
s = input();

desired = "CODEFESTIVAL2016"

iterations = 0

for i, c in enumerate(s):
    if c != desired[i]:
        iterations += 1

print(iterations)

Submission status: Accepted

Solution code:
s=input()
c="CODEFESTIVAL2016"
#print(s)
#print(c)
count = 0
for i in range(16):
	if( s[i:i+1] != c[i:i+1] ):
#		print(s[i:i+1])
#		print(c[i:i+1])
		count += 1
print(count)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
ans = 'CODEFESTIVAL2016'
s = input()

count = 0
for i in range(len(ans)):
    if ans[i] != s[i]:
        count += 1

print(count)

Submission status: Accepted

Solution code:
s = raw_input()
c = 0
answer = 'CODEFESTIVAL2016'
num_of_modified = 0
for str in s:
    if str != answer[c]:
      num_of_modified = num_of_modified + 1
    c = c + 1

print num_of_modified

Submission status: Accepted

Solution code:
s = str(input())
ans = 'CODEFESTIVAL2016'
i, j = 0, 0
while i < 16:
    if (s[i] != ans[i]):
        j += 1
    i += 1
print(str(j))

Submission status: Accepted

Solution code:
result = 0
S = str(input())
correct = "CODEFESTIVAL2016"
for i in range(16):
    if S[i] != str(correct[i]):
        S.replace(S[i], correct[i])
        result += 1
print(result)

Submission status: Accepted

Solution code:
S = raw_input()
S_right = 'CODEFESTIVAL2016' 
ans = 0
for s, s_r in zip(S, S_right):
    if s != s_r:
        ans += 1
print ans

Submission status: Accepted

Solution code:
s=input()
a="CODEFESTIVAL2016"
count=0
for a,b in zip(s,a) :
    if a != b :
        count+=1 
print(count)

Submission status: Accepted

Solution code:
before = input()
before = list(before)
after = list('CODEFESTIVAL2016')

sum = 0
for i in range(16):
        if before[i] != after[i]:
                sum += 1

print(sum)

Submission status: Accepted

Solution code:
correct = "CODEFESTIVAL2016"
wrong = raw_input()
count = 0

for i in range(16):
  if correct[i] != wrong[i]:
    count += 1

print count

Submission status: Accepted

Solution code:
s = raw_input()
st = "CODEFESTIVAL2016"
count = 0
for (sl, stl) in zip(s, st):
    if sl != stl:
        count += 1
print count

Submission status: Accepted

Solution code:
dst = 'CODEFESTIVAL2016'
src = raw_input()
print sum(1 for i in range(len(dst)) if dst[i] != src[i])

Submission status: Accepted

Solution code:
import sys

S = sys.stdin.readline()
T = 'CODEFESTIVAL2016'

cnt = 0
for s, t in zip(S, T):
    if s != t:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
S = raw_input()
answer = 0
model = "CODEFESTIVAL2016"
for x in range(16):
    if S[x] != model[x]:
        answer += 1
print answer

Submission status: Accepted

Solution code:
 # -*- coding: utf-8 -*-
correct = 'CODEFESTIVAL2016'
wrong = raw_input()
sum = 0
for index in xrange(0, len(wrong)):
    if correct[index] != wrong[index]:
        sum += 1
print sum

Submission status: Accepted

Solution code:
s=input()
v="CODEFESTIVAL2016"
cnt=0
for i in range(16):
    if s[i]==v[i]:
        cnt+=1
print(16-cnt)

Submission status: Accepted

Solution code:
print(sum([a != b for a, b in zip('CODEFESTIVAL2016', input())]))

Submission status: Accepted

Solution code:
s = raw_input()

c = "CODEFESTIVAL2016"

ans  = 0
for i in range(len(c)):
    if s[i] != c[i]:
        ans += 1
print ans

Submission status: Accepted

Solution code:
s=raw_input()
print sum(s[i]!='CODEFESTIVAL2016'[i] for i in range(len(s)))

Submission status: Accepted

Solution code:
title = 'CODEFESTIVAL2016'
S = str(input())
count = 0

for i in range(16):
    if S[i] != title[i]:
        count = count + 1

print(count)

Submission status: Accepted

Solution code:
s = input()
chs = list(s)
str = 'CODEFESTIVAL2016'
count = 0
for i, ch in enumerate(chs):
  if ch != str[i]:
    count += 1
print(count)

Submission status: Accepted

Solution code:
string = input()

goal = 'CODEFESTIVAL2016'

count = 0
for i in range(len(string)):
    c = string[i]
    if c != goal[i]:
        count += 1

print(count)

Submission status: Accepted

Solution code:
import sys 

S = sys.stdin.readline().strip()
template = 'CODEFESTIVAL2016'
res = 0 
i = 0 
while i < len(S):
    if S[i] != template[i]:
        res += 1
    i +=1                                                                                                                                                                                                                             

print res

Submission status: Accepted

Solution code:
s = raw_input()
a = "CODEFESTIVAL2016"
ans = 0
for i in xrange(16):
    if s[i] != a[i]:
        ans += 1
print ans

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# encoding: utf-8

t = "CODEFESTIVAL2016"
s = raw_input()
ans = 0
for i in xrange(16):
    if s[i] != t[i]:
        ans += 1

print ans

Submission status: Accepted

Solution code:
input_str = raw_input()
result_str = "CODEFESTIVAL2016"

count = 0
for input_char, result_char in zip(input_str, result_str):
    if input_char != result_char:
        count += 1
print count

Submission status: Accepted

Solution code:
s = raw_input()
orig = 'CODEFESTIVAL2016'

result = 0
for i in range(len(s)):
  if orig[i] != s[i]:
    result += 1

print result

Submission status: Accepted

Solution code:
l=raw_input()
list(l)
L="CODEFESTIVAL2016"
d=0
for i in range(len(l)):
    if(l[i]!=L[i]):
        d+=1
print d

Submission status: Accepted

Solution code:
import math
from collections import Counter
S = raw_input().strip()
tar = "CODEFESTIVAL2016"
count = 0
for i, Si in enumerate(S):
  if Si != tar[i]:
    count += 1
print count

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# !/usr/bin/env python
# vim: set fileencoding=utf-8 :

"""
#
# Author:   Noname
# URL:      https://github.com/pettan0818
# License:  MIT License
# Created:  2016-10-10
#

# Usage
#
"""

def inputs():
    return input()

def check_wrong_strs(inputed):
    """

    >>> check_wrong_strs("C0DEFESTIVAL2O16")
    2
    >>> check_wrong_strs("FESTIVAL2016CODE")
    16
    """
    num = 0
    RIGHT = "CODEFESTIVAL2016"

    for i, n in zip(inputed, RIGHT):
        if i != n:
            num += 1
    return num



if __name__ == "__main__":
    print(check_wrong_strs(inputs()))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
ss = 'CODEFESTIVAL2016'
s = raw_input()
res = 0
for x in xrange(len(ss)):
    if ss[x] != s[x]:
        res += 1

print res

Submission status: Accepted

Solution code:
print sum([a != b for a, b in zip("CODEFESTIVAL2016", raw_input())])

Submission status: Accepted

Solution code:
s = list("CODEFESTIVAL2016")
t = list(raw_input())
num = 0
for i, c in enumerate(s):
    if c != t[i]:
        num = num + 1
        
print num

Submission status: Accepted

Solution code:
#coding=utf-8

CORRECT = "CODEFESTIVAL2016"
ss = raw_input()

ans = 0
for (ss, c) in zip(ss, CORRECT):
    if ss != c:
        ans += 1

print ans

Submission status: Accepted

Solution code:
# get a string
s = raw_input()

n = 0
for i, c in enumerate('CODEFESTIVAL2016'):
    if s[i] != c:
        n+=1
print n

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# get a string
s = raw_input()
cf = 'CODEFESTIVAL2016'

# output
print len([0 for c1, c2 in zip(s, cf) if c1 is not c2])

Submission status: Accepted

Solution code:
s=raw_input()
ls=list(s)
c=0
ss="CODEFESTIVAL2016"
lss=list(ss)
for i in range(len(ss)):
    if ls[i]!=lss[i]:
        c+=1
print c

Submission status: Accepted

Solution code:
S=raw_input()
C="CODEFESTIVAL2016"
ans=0
for i in range(16):
    if S[i]!=C[i]:
        ans+=1
print ans

Submission status: Accepted

Solution code:
S = input()
moziretu = "CODEFESTIVAL2016"

count = 0
for s, m in zip(S, moziretu):
    if s != m:
        count += 1

print(count)

Submission status: Accepted

Solution code:
S=str(input())
ans='CODEFESTIVAL2016'
c=0
for i in range(len(S)):
    if S[i]!= ans[i]:
        c += 1
print(c)

Submission status: Accepted

Solution code:
s = raw_input()
r = 'CODEFESTIVAL2016'
cnt = 0
for i in xrange(len(s)):
    cnt += 1 if s[i] != r[i] else 0
print cnt

Submission status: Accepted

Solution code:
A = "CODEFESTIVAL2016"
S = input()
print(sum(0 if s == a else 1 for s, a in zip(A, S)))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys

def s():
    return raw_input().strip()
def n():
    return int(raw_input())
def d():
    return float(raw_input())

def ls():
    return raw_input().strip().split()
def ln():
    return map(int, raw_input().strip().split())
def ld():
    return map(float, raw_input().strip().split())

def fs():
    return [raw_input().strip() for i in xrange(input())]
def fn():
    return [int(raw_input().strip()) for i in xrange(input())]
def fd():
    return [float(raw_input().strip()) for i in xrange(input())]

X = s()

C = 'CODEFESTIVAL2016'

c = 0
for i, x in enumerate(X):
    if x != C[i]:
        c += 1

print c

Submission status: Accepted

Solution code:
s = input()
cf = 'CODEFESTIVAL2016'

count = 0
for i in range(0, len(cf)):
    if s[i] != cf[i]:
        count += 1

print(count)

Submission status: Accepted

Solution code:
a = "CODEFESTIVAL2016"
cnt = 0
s = input()

for i in range(len(s)):
    if a[i] != s[i]:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
S = input()
A = "CODEFESTIVAL2016"
a = 0
for i in range(16):
	if S[i] != A[i]:
		a += 1

print(a)

Submission status: Accepted

Solution code:
def main():
    s = input()

    text = "CODEFESTIVAL2016"
    counter = 0
    for i in range(len(s)):
        if text[i] != s[i]:
            counter+=1
    print(counter)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=raw_input()
ans=0
A='CODEFESTIVAL2016'
for i in range(16):
    if S[i]!=A[i]:
        ans+=1
print ans

Submission status: Accepted

Solution code:
s = input()
a = [c==x for c, x in zip(s, "CODEFESTIVAL2016")]
print(sum(1 for b in a if not b))

Submission status: Accepted

Solution code:
# coding: utf-8

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def array2d(d1, d2, init = None):
    return [[init for _ in range(d2)] for _ in range(d1)]

s = input().strip()
c = "CODEFESTIVAL2016"
cnt = 0
for i in range(len(c)):
    if s[i] != c[i]: cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
a = raw_input()
b = 'CODEFESTIVAL2016'
c = 0
for i in range(16):
    if a[i] != b[i]:
        c+=1
print c

Submission status: Accepted

Solution code:
s = raw_input()
rs = "CODEFESTIVAL2016"
result = 0
for i, c in enumerate(s):
    if(c != rs[i]) :
        result += 1
print result

Submission status: Accepted

Solution code:
s = raw_input()
a = "CODEFESTIVAL2016"

ans  = 0
i = 0
for i in range(16):
    if a[i] != s[i]:
        ans += 1

print ans

Submission status: Accepted

Solution code:
arg1 = input()
base = "CODEFESTIVAL2016"
ret = 0
for i,s in enumerate(arg1):
    if s != base[i]:
        ret += 1

print(ret)

Submission status: Accepted

Solution code:
def read():
    return int(input())

def reads(sep=None):
    return list(map(int, input().split(sep)))

def main():
    s = input()
    print(len([c for c in zip(s, 'CODEFESTIVAL2016') if c[0]!=c[1]]))

main()

Submission status: Accepted

Solution code:
s = "CODEFESTIVAL2016"
x = raw_input()
count = 0
for i in xrange(len(s)):
    if s[i] != x[i]:
        count += 1
print count

Submission status: Accepted

Solution code:
a = raw_input()
b = "CODEFESTIVAL2016"
ans = 0
for i in range(len(a)):
  if a[i] != b[i]:
    ans += 1
print ans

Submission status: Accepted

Solution code:
s = input()

cor = "CODEFESTIVAL2016"

res = 0
for i,c in enumerate(s):
    if c != cor[i]:
        res+=1
print(res)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
s = input()
gt = "CODEFESTIVAL2016"

ans = 0
for i in range(len(gt)):
    if s[i] != gt[i]:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
S = raw_input()
answer = 0
ans = 'CODEFESTIVAL2016'
for cha,cha1 in zip(S,ans):
    if cha==cha1:
	pass
    else:
	answer += 1
print answer

Submission status: Accepted

Solution code:
S = raw_input()
S_list = list(S)
T_list = list('CODEFESTIVAL2016')

res = 0
for i in range(16):
    if S_list[i] != T_list[i]:
        res += 1
print res

Submission status: Accepted

Solution code:
i = input()
ANS = "CODEFESTIVAL2016"

cnt = 0
for j in range(16):
    if i[j] != ANS[j]:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
s = input()
cs = 'CODEFESTIVAL2016'
cnt = 0

for i in range(len(cs)):
    if s[i]==cs[i]:
        continue
    else:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
n = raw_input()

ok = "CODEFESTIVAL2016"

c = 0

for i in range(0,len(ok)):
    if(n[i]!=ok[i]):c+=1

print c

Submission status: Accepted

Solution code:
S=input()
correct_S = "CODEFESTIVAL2016"

ans=0
for i,s in enumerate(S):
    if not correct_S[i]==s:
        ans+=1

print(ans)

Submission status: Accepted

Solution code:
c = "CODEFESTIVAL2016"
e = raw_input()
ans = 0
for i in xrange(len(c)):
    if c[i] != e[i]:
        ans += 1
print ans

Submission status: Accepted

Solution code:
ss="CODEFESTIVAL2016"
s=raw_input()
cnt=0
for i in xrange(len(s)):
    if s[i]!=ss[i]:
        cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
s = raw_input()
t = "CODEFESTIVAL2016"
x = 0
assert len(s) == len(t)
for i in range(len(t)):
    x += 1 if s[i] != t[i] else 0
print x

Submission status: Accepted

Solution code:
s = raw_input()
t = "CODEFESTIVAL2016"
c = 0
for i in xrange(len(s)):
    if s[i] != t[i]:
        c += 1

print c

Submission status: Accepted

Solution code:
S = raw_input()
T = "CODEFESTIVAL2016"
ans = 0
for i in xrange(len(S)):
    if S[i] != T[i]: ans += 1
print ans

Submission status: Accepted

Solution code:
s = raw_input()
ans = "CODEFESTIVAL2016"
res = 0
for i, e in enumerate(ans):
    if e != s[i]:
        res += 1

print res

Submission status: Accepted

Solution code:
ans = 0
s = 'CODEFESTIVAL2016'
t = raw_input().strip()
for i in xrange(16):
    if s[i] != t[i]: ans +=1
print ans

Submission status: Accepted

Solution code:
print sum(a!=b for a, b in zip(raw_input(), 'CODEFESTIVAL2016'))

Submission status: Accepted

Solution code:
S = input()
C = 'CODEFESTIVAL2016'

answer = 0
for i in range(len(S)):
    if S[i] != C[i]:
        answer += 1
print(answer)

Submission status: Accepted

Solution code:
S = raw_input()
a = "CODEFESTIVAL2016"
ans = 0
for i in range(16):
    if S[i] != a[i]:
        ans += 1
print ans

Submission status: Accepted

Solution code:
s = input()
c = 'CODEFESTIVAL2016'
ans = 0
for i in range(len(s)):
    if s[i] != c[i]:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
print(sum(x != y for x, y in zip(input(), "CODEFESTIVAL2016")))

Submission status: Accepted

Solution code:

inp = input()
ans = 0

fit = 'CODEFESTIVAL2016'

for i in range(len(fit)):
    if fit[i] != inp[i]:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
line = raw_input()

ans = 'CODEFESTIVAL2016'
count = 0

for i in range(len(line)):
    if line[i] != ans[i]:
        count += 1

print count

Submission status: Accepted

Solution code:
t = "CODEFESTIVAL2016"
s = input()
a = sum(c1 != c2 for c1, c2 in zip(t, s))
print(a)

Submission status: Runtime Error

Solution code:
n = input()
a = 0
a = "CODEFESTIVAL2016"
for i, j in zip(n, a):
  if i != j:
    a += 1
print(a)

Submission status: Runtime Error

Solution code:
S = input()
T = 'CODEFESTIVAL2016'
ans = 0
for _ in range(16):
  ans += S[i] != T[i]
print(ans)

Submission status: Runtime Error

Solution code:
s=int(input())
t='CODEFESTIVAL2016'
ans=0
for i in range(16):
  if s[i]!=t[i]:
    ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
s=int(input())
t='CODEFESTIVAL2016'
ans=0
for i in range(16):
  if s!=t:
    ans+=1
print(ans)