# ABC185A - ABC Preparation

def main():
    # input

    # compute

    # output
    print(min(map(int, input().split())))


if __name__ == '__main__':
    main()

# ABC185A - ABC Preparation

def main():
    # input

    # compute

    # output
    print(min(map(int, input().split())))


if __name__ == '__main__':
    main()

# ABC185A - ABC Preparation # input # compute # output