let n = readLine()!.split(separator: " ").map{Int($0)!} var c = 0 for i in n[0]...n[1]{ c += (n[0] + n[1] + i) % 3 == 0 ? 1 : 0 } print(c)