Given a string, delete all its characters whose indices (0-based) are divisible by 3.
var i:integer;
var a:string;
begin
readln(a);
for i:=(length(a)-1)downto 0 do
if (i mod 3)=0 then
delete(a,i,i);
writeln(a);
end.
Input (stdin)
Python
Your Output (stdout)
Pyn
Expected Output
yton
Compiler Message
Wrong Answer