package main import "fmt" func main() { var a, h, m int fmt.Scan(&a) h = (10 + a/100) % 24 m = (a % 100) * 60 / 100 fmt.Printf("%02d:%02d\n", h, m) }