Deductions & credits

"According to the IRS instructions are to put a W"

 

With tax software, W is a special case.

It will ask you  for any disallowed loss  and then put the code for you.

 

N is another separate case, the column (h) should be zero.

the software should handle it unless you are entering amounts by hand.