n = int(input()) print(abs(n))
n = int(input()) if n < 0: n = n * -1 else: n = n * 1 print(n)
abs메서드
abs
숫자를 절댓값으로 바꿔주는 메서드이다.