Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. rub_1 = int(input())
  2. kop_1 = int(input())
  3. rub_2 = int(input())
  4. kop_2 = int(input())
  5. x = kop_1 + kop_2
  6. y = x // 100
  7. z = rub_1 + rub_2 + y
  8. c = x - y * 100
  9. print ( z, " ", c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement