get_input(Number):-
    current_input(Input),
    read_string(Input, ' \n', '', _, String),
    number_string(Number, String). 

main:-
    get_input(A),
    N is A mod 10,
    N =:= 0 -> write('pon');,
    write(N).
