/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
findMinimumSteps(11);
}
private static void findMinimumSteps(int dest)
{
if(dest==0)
{
return;
}
if(dest<0)
dest*=-1;
int i
= (int)Math.
ceil((Math.
sqrt(1+8*dest
)-1)/2); int sum=i*(i+1)/2;
if(dest%2==0)
{
if(i%2==0 && sum%2==1)
{
}
else if(i%2==1 && sum%2==1)
{
}
else
{
}
}
else
{
if(i%2==0 && sum%2==0)
{
}
else if(i%2==1 && sum%2==0)
{
}
else
{
}
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWZpbmRNaW5pbXVtU3RlcHMoMTEpOwoJfQoJcHJpdmF0ZSBzdGF0aWMgdm9pZCBmaW5kTWluaW11bVN0ZXBzKGludCBkZXN0KQoJewoJCWlmKGRlc3Q9PTApCgkJewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oZGVzdCk7CgkJCXJldHVybjsKCQl9CgkJaWYoZGVzdDwwKQoJCQlkZXN0Kj0tMTsKCQkKCQlpbnQgaSA9IChpbnQpTWF0aC5jZWlsKChNYXRoLnNxcnQoMSs4KmRlc3QpLTEpLzIpOwoJCWludCBzdW09aSooaSsxKS8yOwoJCWlmKGRlc3QlMj09MCkKCQl7CgkJCWlmKGklMj09MCAmJiBzdW0lMj09MS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