#include<stdio.h> int main() { int a[5] = { 153,370,371,407,1634}; int i,n; scanf("%d", &n); for (i = 0;; i++) if (a[i] >= n) { printf("%d\n", a[i]); break; } return 0; }
#include<stdio.h> int main() { int a[5] = { 153,370,371,407,1634}; int i,n; scanf("%d", &n); for (i = 0;; i++) if (a[i] >= n) { printf("%d\n", a[i]); break; } return 0; }