def main(): A = int(input()) print(3 * (A // 3) // 3)