// No.2297 Best Grouping package main import "fmt" func main() { var n int fmt.Scan(&n) switch n % 3 { case 0: fmt.Println(0) case 1: fmt.Println(2) case 2: fmt.Println(1) } }