file = open('Input.txt', 'w') file.write('45 17 29') file.close() fout = open('Input.txt', 'r') z = fout.read().split() a, b, c = map(int, z) f = open('Output.txt', 'w') m = min(a, b, c) f.write(str(m)) f.close()