A. Bags of Candies
time limit per test
2 s
memory limit per test
512 megabytes
input
standard input
output
standard output