#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin>>a;
if(a%3>0)
cout<<"成功";
else
cout<<"失败";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBhOwppbnQgYjsKY2luPj5hOwppZihhJTM+MCkKICAgIGNvdXQ8PCLmiJDlip8iOwplbHNlCiAgICBjb3V0PDwi5aSx6LSlIjsKCXJldHVybiAwOwp9