'''
Created on Mar 5, 2015

@author: Ivan Varus

@thanks: ferhatelmas/algo
'''

import sys


def predict(n):
    return bin(n).count('1') % 3


f = open(sys.argv[1], 'r')
for line in f:
    print(predict(int(line)))
f.close()

6c4d58559e697867c3489fbbfc72635b64f0e27e
<mask token>


def predict(n):
    return bin(n).count('1') % 3


<mask token>

<mask token>


def predict(n):
    return bin(n).count('1') % 3


<mask token>
for line in f:
    print(predict(int(line)))
f.close()

<mask token>


def predict(n):
    return bin(n).count('1') % 3


f = open(sys.argv[1], 'r')
for line in f:
    print(predict(int(line)))
f.close()

<mask token>
import sys


def predict(n):
    return bin(n).count('1') % 3


f = open(sys.argv[1], 'r')
for line in f:
    print(predict(int(line)))
f.close()

'''
Created on Mar 5, 2015

@author: Ivan Varus

@thanks: ferhatelmas/algo
'''

import sys


def predict(n):
    return bin(n).count('1') % 3


f = open(sys.argv[1], 'r')
for line in f:
    print(predict(int(line)))
f.close()
