>>425
while(true){
 print
if(!flag){ break; }
}
はどう?