func main() var t: int :: cui@inputInt() var a: int :: cui@inputInt() var b: int :: cui@inputInt() var ans: int :: (t - 1) / a + (t - 1) / b - (t - 1) / (math@lcm(a, b)) + 1 do cui@print("\{ans}\n") end func