import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i; int Nama = sc.nextInt(); int num = sc.nextInt(); int[] height = new int[num]; String[] str = {"st", "nd", "rd", "th"}; height[0] = Nama; for(i=1;inum-4){ System.out.println(str[num-i-1]); } else System.out.println(str[3]); } } } }