#!/usr/bin/env python3 dpos4 = ((1, 0), (0, 1), (-1, 0), (0, -1)) dpos8 = ((0, -1), (1, -1), (1, 0), (1, 1), (0, 1), (-1, 1), (-1, 0), (-1, -1)) mod1 = 10**9 + 7 mod2 = 998244353 inf = 1 << 60 def main(): A, B = map(int, input().split()) print(abs(A - B)) if __name__ == "__main__": main()