package main
import "fmt"
func main(){
var n int
fmt.Scanf("%d",&n)
for n!=42 {
fmt.Printf("%d\n",n)
fmt.Scanf("%d",&n)
}
}
cGFja2FnZSBtYWluCmltcG9ydCAiZm10IgoKZnVuYyBtYWluKCl7Cgl2YXIgbiBpbnQKCWZtdC5TY2FuZigiJWQiLCZuKQoJZm9yIG4hPTQyIHsKCQlmbXQuUHJpbnRmKCIlZFxuIixuKQoJCWZtdC5TY2FuZigiJWQiLCZuKQoJfQp9