print$_%15/5+($_/15<<3)+($_%15/3|0)<<1,$/for<>