compiles
works with input now.
works on kattis