Man sentenced to five years in jail for tweets against army