#include<stdio.h> int main(){ int i; for(i = 7; ; i=i+7){ if(i%2==1 && i%3==2 && i%5==4 && i%6==5){ break; } } printf("%d", i); return 0; }