Problem 1074 solved