doing these on CodeTable. was torture. did first codeforces round without compiler. that was hard :O