import strutils proc pInt(s: auto): int = parseInt($s) proc input(): string = while not stdin.endOfFile: let c = stdin.readChar if c == '\r': continue if c in [' ', '\n']: break result.add c proc main(): void = let a, b, c = pInt(input()) echo [a, b, c].min when isMainModule: main()