#include <iostream>                                                                                                                                                                                                                           
using namespace std;                                                                                                                                                                                                                          
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              
int main()                                                                                                                                                                                                                                    
{                                                                                                                                                                                                                                             
    char S[20];                                                                                                                                                                                                                               
    const char *sample = "CODEFESTIVAL2016";                                                                                                                                                                                                  
                                                                                                                                                                                                                                              
    cin >> S;                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                              
    int diff = 0;                                                                                                                                                                                                                             
    for (int i = 0; i < 16; i++)                                                                                                                                                                                                              
    {                                                                                                                                                                                                                                         
        if (S[i] != sample[i])                                                                                                                                                                                                                
            diff += 1;                                                                                                                                                                                                                        
                                                                                                                                                                                                                                              
    }                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                              
    cout << diff << endl;                                                                                                                                                                                                                     
}    

Measured memory_bytes: 256