#include int sum(int i){ int n=0; while(i){ n+=i%10; i/=10; } return n; } int main(){ int a[20],n; scanf("%d",&n); for(int i=0;i