package main
import "fmt"
func main(){
var i int
var f float64
var s string
_, err := fmt.Scan(&i,&f,&s)
if err == nil {
fmt.Println("read 1 integer: ",i)
fmt.Println("read 1 float64: ",f)
fmt.Println("read 1 string: ",s)
} else {
fmt.Println("Error: ",err)
}
_, err = fmt.Scanln(&s)
if err == nil {
fmt.Println("read 1 line: ",s)
} else {
fmt.Println("Error: ",err)
}
}
cGFja2FnZSBtYWluCmltcG9ydCAiZm10IgoKZnVuYyBtYWluKCl7CgkgIHZhciBpIGludAogIHZhciBmIGZsb2F0NjQKICB2YXIgcyBzdHJpbmcKICBfLCBlcnIgOj0gZm10LlNjYW4oJmksJmYsJnMpCiAgaWYgZXJyID09IG5pbCB7CiAgICBmbXQuUHJpbnRsbigicmVhZCAxIGludGVnZXI6ICIsaSkKICAgIGZtdC5QcmludGxuKCJyZWFkIDEgZmxvYXQ2NDogIixmKQogICAgZm10LlByaW50bG4oInJlYWQgMSBzdHJpbmc6ICIscykKICB9IGVsc2UgewogICAgZm10LlByaW50bG4oIkVycm9yOiAiLGVycikKICB9CiAgXywgZXJyID0gZm10LlNjYW5sbigmcykKICBpZiBlcnIgPT0gbmlsIHsKICAgIGZtdC5QcmludGxuKCJyZWFkIDEgbGluZTogIixzKQogIH0gZWxzZSB7CiAgICBmbXQuUHJpbnRsbigiRXJyb3I6ICIsZXJyKQogIH0KfQ==