diff --git a/TaskA04/Makefile b/TaskA04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskA04/run b/TaskA04/run new file mode 100644 index 0000000..91d2bb7 --- /dev/null +++ b/TaskA04/run @@ -0,0 +1,26 @@ +#!/usr/bin/python3 + +import sys + +def num(x): + if x >= '0' and x <= '9': + return True + else: + return False + +def numbers(x): + temp = '' + array = [] + for i in x: + if num(i): + temp = temp + i + else: + if temp != '': + array.append(temp) + temp = '' + return array + +for line in sys.stdin: + temp = numbers(line) + if len(temp) != 0: + print(' '.join(temp))