Task: Text to Code
Input (English): eq { hop { nth_argmax { all_rows ; ties played ; 2 } ; player } ; dovydas šakinis }
Output (English): ordinal