##Pyke, 15 bytes

    4<bwӐi%\pQ{i*+
[Try it here!](http://pyke.catbus.co.uk/?code=4%3Cbw%D3%90i%25%5CpQ%7Bi%2a%2B&input=1200+am)