def extract_the_number_from_end_of_string(s):
num = 0
i = len(s) - 1
# Traverse the string from the end to extract the number
while i >= 0 and s[i].isdigit():
num = num + int(s[i]) * (10 ** (len(s) - 1 - i))
i -= 1
return num
s = "python java c c++ 194"
print(extract_the_number_from_end_of_string(s))
'''
run:
194
'''