import java.util.*; public class Main{ public static void main(String[] args){ int i, count = 1; String[] str = {"th", "st", "nd", "rd"}; Scanner sc = new Scanner(System.in); int Nama = sc.nextInt(); int num = sc.nextInt(); for(i=0;iNama)count++; } System.out.printf("%d%s\n",count, (count%10<4)?str[count%10]:str[0]); } }