시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 5518 2056 1861 39.613%

문제

사파리월드는 인터넷으로만 존재하는 미스테리한 나라이다. 사파리월드에는 2개의 서브도메인이 seunghwan.royal.gov.sw와 kyuhyun.royal.gov.sw 이 있는데, 이것이 couple.royal.gov.sw으로 합쳐질 것이다. 그러나 도메인 관리 센터 SWNIC(센터장: 김동규)에는 엄격한 룰이 있다. 두 서브도메인을 합칠 때, 유명도의 차이가 너무 차이나지 않을 경우에만 두 서브도메인을 결혼시키는 것이다. 서브도메인의 유명도는 정수이다. 두 서브도메인의 유명도가 주어졌을 때, 그 차이를 구하는 프로그램을 작성하시오.

입력

첫째 줄에 두 도메인의 유명도 N과 M이 주어진다. (-2,000,000,000 ≤ N, M ≤ 2,000,000,000)

출력

첫째 줄에 두 유명도의 차이 (|N-M|)을 출력한다.

예제 입력 1

-2 5

예제 출력 1

7
W3sicHJvYmxlbV9pZCI6IjI0MjAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMwYWNcdWQzMGNcdWI5YWNcdWM2ZDRcdWI0ZGMiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YzBhY1x1ZDMwY1x1YjlhY1x1YzZkNFx1YjRkY1x1YjI5NCBcdWM3NzhcdWQxMzBcdWIxMzdcdWM3M2NcdWI4NWNcdWI5Y2MgXHVjODc0XHVjN2FjXHVkNTU4XHViMjk0IFx1YmJmOFx1YzJhNFx1ZDE0Y1x1YjlhY1x1ZDU1YyBcdWIwOThcdWI3N2NcdWM3NzRcdWIyZTQuIFx1YzBhY1x1ZDMwY1x1YjlhY1x1YzZkNFx1YjRkY1x1YzVkMFx1YjI5NCAyXHVhYzFjXHVjNzU4IFx1YzExY1x1YmUwY1x1YjNjNFx1YmE1NFx1Yzc3OFx1Yzc3NCBzZXVuZ2h3YW4ucm95YWwuZ292LnN3XHVjNjQwIGt5dWh5dW4ucm95YWwuZ292LnN3IFx1Yzc3NCBcdWM3ODhc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