solve input macro