A = int(input("첫 번째 숫자를 입력하세요"))
B = int(input("두 번째 숫자를 입력하세요"))
C = int(input("세 번째 숫자를 입력하세요"))
print("최댓값은 A입니다.", A>B and A>C)
print("최댓값은 B입니다.", B>A and B>C)
print("최댓값은 C입니다.", C>B and C>A)
print("최솟값은 A입니다.", not(A>B or A>C))
print("최솟값은 B입니다.", not(B>A or B>C))
print("최솟값은 C입니다.", not(C>B or C>A))