#38356: python 不使用if解


jacky50706@gmail.com (蔡宇傑)


n = int(input())
print(n - (n-((n//51-1)>0*51))//51)