it was here , hours before the 1956 uprising , that thousands congregated , waving hungarian flags from which they had painstakingly and joyously cut the hammer and sickle , prior to marching on parliament .