e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 4: November 30 – December 6. While Loop. Part 1

Minimum among the larger

Given integer n. Among integers larger than n and multiples of 7 find the minimum.

Input

One integer n.

Output

Print the minimum number among ones that larger than n and multiples of 7.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3
Output example #1
7
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"