#include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; int kadomatsu[101]; int main() { int m=0; cin>>m; for(int i=0; i>tmp; kadomatsu[i] = tmp; } bool judge = true; int a=0; while(judge){ judge = false; for(int i=0; i kadomatsu[i+1]){ int tmp = kadomatsu[i]; kadomatsu[i] = kadomatsu[i+1]; kadomatsu[i+1] = tmp; judge = true; a++; cout<>b; if(a ==0){ cout<<0<