Gym - 100814I I. Salem time limit per test 1 second memory limit per test 1024 megabytes input standard input output standard output Salem is known to be one of the best competitive programmers in the region. However, he always finds a hard time unde…