# !/user/bin/python
# -*- coding: utf-8 -*-
#- Author : (DEK) Devendra Kavthekar

# Write a program which accepts a sequence of words separated by
# whitespace as input to print the words composed of digits only.

# Example:
# If the following words is given as input to the program:

# 2 cats and 3 dogs.

# Then, the output of the program should be:

# ['2', '3']

# In case of input data being supplied to the question, it should be
# assumed to be a console input.

# Hints:
# Use re.findall() to find all substring using regex.

import re

print 'Enter Sentence with including digits...'


def do(sentence):
    result = re.findall(r'[\d+]', sentence)
    print result


def main():
    data = '2 cats and 3 dogs'
    # data = raw_input()
    do(data)

if __name__ == '__main__':
    main()
