# A10;S20;W10;D30;X;A1A;B10A11;;A10; s = input() list_str = s.split(';') x = 0 y = 0 direction_zy = {"A": -1, "D": 1} direction_sx = {"W": 1, "S": -1} direction = dict(direction_zy) direction.upd...