System.in.eachLine{a=it.split() println a==a.sort(!1)?"1 2 3 4 5 6 Do it!!".tr(it," "):"POOR"}