АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1044. а75

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Доказать, что любую целочисленную сумму, большую 7 руб., можно выплатить без сдачи трешками и пятерками

Для данного n>7 найти такие целые не отрицательные a и b что 5a+5b=n

Hint

Вначале высчитываеться полное кол-во возможных пятерок а потом уже трешек.

Input

1 действительное чисело n

Output

два действительных числа через пробел a и b

Sample

InputOutput
Пример 1. Вход:
8
Пример 1. Выход:
1 1

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1036. а59з 1044. 1069. гипотенуза и площадь 1046. произведение сомножителей 864. 1 - Циферблат
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.124 sec.
© Copyright VSTU, AVT, Nosov D.A.