From statement (3), floor Floor ‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌5 1 and 5 are painted by the same colour red. ‌‌‌‌‌‌4 Then, middle three floor 2, 3 and 4 ‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌3 must be painted in remaining three ‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌2 different colours. ‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌1 In that way, we get that any two consticutive floor have different colours.