input_list = input().split(";") init = [0, 0] derect = "AWSD" for item in input_list: if len(item) <= 0: continue derection = item[0] steps = item[1::] if derection in derect and steps.isdigit(): if derection == "A": init[0] -= int(item[1::]) el...