codeforces 18A Triangle