#include "robot.h"
#include <bits/stdc++.h>
using namespace std;
void instr(vector<int> s, int c, char a)
{
if(s[0] == -3)
{
for(int i = -2; i < 3; i++)
{
instr({i, s[1], s[2], s[3], s[4]}, c, a);
}
} else if(s[1] == -3)
{
for(int i = -2; i < 3; i++)
{
instr({s[0], i, s[2], s[3], s[4]}, c, a);
}
} else if(s[2] == -3)
{
for(int i = -2; i < 3; i++)
{
instr({s[0], s[1], i, s[3], s[4]}, c, a);
}
} else if(s[3] == -3)
{
for(int i = -2; i < 3; i++)
{
instr({s[0], s[1], s[2], i, s[4]}, c, a);
}
} else if(s[4] == -3)
{
for(int i = -2; i < 3; i++)
{
instr({s[0], s[1], s[2], s[3], i}, c, a);
}
}
else
set_instruction(s, c, a);
}
void program_pulibot()
{
// set_instruction({0, -2, 0, 0, -2}, 1, 'E');
// set_instruction({0, 1, 0, 0, -2}, 1, 'E');
// set_instruction({0, 1, 0,-2, -2}, 1, 'S');
// set_instruction({0, 0, 0,-2, 1}, 1, 'S');
// set_instruction({0, 0,-2,-2, 1}, 1, 'T');
instr({0, -3, 0, -2, -2}, 1, 'S');
instr({0, -3, -2, -2, 0}, 1, 'N');
instr({0, -3, 1, -2, -2}, 1, 'S');
instr({0, -3, -2, -2, 1}, 1, 'N');
instr({0, -3, -3, 0, -3}, 1, 'E');
instr({1, -3, -3, -3, -3}, 1, 'T');
}