n=gets.to_i;m=n/2;puts n&1<1??1*m:?7+?1*~-m