package main import ( "fmt" ) func main() { var x int fmt.Scan(&x) if x == 2 { fmt.Println(2) } else { fmt.Println(4 + x%2 + (x-3)/2*10) } }