Solved problem 22

Signed-off-by: Kim Seonghyun <shyeon.kim@scipi.net>