(141A) Christmas problem because it's Christmas:)
added seperate program for standard input (codeforces), all tests are passing