Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # 670A : HOLIDAYS
  2. # Prerequisite: Implementation
  3. n=int(raw_input())
  4. atLeast=(n//7)*2
  5. minimum=0
  6. if(n%7==0):maximum=atLeast
  7. elif n%7==1:maximum=atLeast+1
  8. elif n%7==2:maximum=atLeast+2
  9. elif n%7==6:
  10. maximum=atLeast+2
  11. minimum=1
  12. else: maximum=atLeast+2
  13. minimum+=atLeast
  14. print minimum,maximum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement