problem

Time Limit: 1s Memory Limit: 512MB Submissions: 87 Solved: 16 
Description

Input

Output
Sample Input

    
Sample Output