#include using namespace std; int n,a[]={1,4,2,8,5,7}; main() { cin>>n; if(n==0) { cout<<0<