def travel(dir, x, y):
    """
    This function takes string of diriction, x coordinate and y coordinate
    and return new x and y coordinate based on direction.
    Direction follows N, W, S, E and changes coordinate accordingly.
    """
    for i in dir.lower():
        if i == 'n':
            y += 1
        elif i == 's':
            y -= 1
        elif i == 'w':
            x -= 1
        elif i == 'e':
            x += 1
    return (x, y)