#coding=utf-8
'''
Question:
Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed in a comma separated sequence.
Example:
0100,0011,1010,1001
Then the output should be:
1010
Notes: Assume the data is input by console.
'''
def binaryNum(s):
  l = s.split(',')
  return ','.join(list(filter(lambda x: int(x)%5==0, l)))

d = binaryNum('0100,0011,1010,1001')
print(d)
5308b5ddb6ceedc578f702fed2f736b033a1c294
<mask token>

<mask token>


def binaryNum(s):
    l = s.split(',')
    return ','.join(list(filter(lambda x: int(x) % 5 == 0, l)))


<mask token>

<mask token>


def binaryNum(s):
    l = s.split(',')
    return ','.join(list(filter(lambda x: int(x) % 5 == 0, l)))


<mask token>
print(d)

<mask token>


def binaryNum(s):
    l = s.split(',')
    return ','.join(list(filter(lambda x: int(x) % 5 == 0, l)))


d = binaryNum('0100,0011,1010,1001')
print(d)

#coding=utf-8
'''
Question:
Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed in a comma separated sequence.
Example:
0100,0011,1010,1001
Then the output should be:
1010
Notes: Assume the data is input by console.
'''
def binaryNum(s):
  l = s.split(',')
  return ','.join(list(filter(lambda x: int(x)%5==0, l)))

d = binaryNum('0100,0011,1010,1001')
print(d)