import java.util.*;
public class PenultimateWord{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
String [] word = str.split("[ ]+");
int i = word.length;
System.out.println("Penultimate Word "+word[i-2]);
}
}