#include using namespace std; int main(){ int A,ans; std::cin >>A ; for (auto i=0 ;i