output_description: Print six integers X_1,Y_1,X_2,Y_2,X_3, and Y_3 that satisfy the conditions,
  in this order, with spaces in between. If multiple solutions exist, any of
  them will be accepted.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: # -*- coding: utf-8 -*-
  
  import sys
  
  
  def input():
      return sys.stdin.readline().strip()
  
  
  def list2d(a, b, c):
      return [[c] * b for i in range(a)]
  
  
  def list3d(a, b, c, d):
      return [[[d] * c for j in range(b)] for i in range(a)]
  
  
  def ceil(x, y=1):
      return int(-(-x // y))
  
  
  def INT():
      return int(input())
  
  
  def MAP():
      return map(int, input().split())
  
  
  def LIST():
      return list(map(int, input().split()))
  
  
  def Yes():
      print("Yes")
  
  
  def No():
      print("No")
  
  
  def YES():
      print("YES")
  
  
  def NO():
      print("NO")
  
  
  sys.setrecursionlimit(10**9)
  INF = float("inf")
  MOD = 10**9 + 7
  
  S = INT()
  MAX = 1000000000
  
  x1, y1 = 0, 0
  x2, y2 = MAX, 1
  x3, y3 = MAX - S % MAX, ceil(S, MAX)
  
  print(x1, y1, x2, y2, x3, y3)
  
problem_description: Statement
  
  Given is an integer S. Find a combination of six integers X_1,Y_1,X_2,Y_2,X_3,
  and Y_3 that satisfies all of the following conditions:
  
    * 0 \leq X_1,Y_1,X_2,Y_2,X_3,Y_3 \leq 10^9
    * The area of the triangle in a two-dimensional plane whose vertices are (X_1,Y_1),(X_2,Y_2), and (X_3,Y_3) is S/2.
  
  We can prove that there always exist six integers that satisfy the conditions
  under the constraints of this problem.
samples: [{"input": "3", "output": "1 0 2 2 0 1\n    \n\nThe area of the triangle in a two-dimensional plane whose vertices are\n(1,0),(2,2), and (0,1) is 3/2. Printing `3 0 3 1 0 1` or `1 0 0 1 2 2` will\nalso be accepted.\n\n* * *"}, {"input": "100", "output": "0 0 10 0 0 10\n    \n\n* * *"}, {"input": "311114770564041497", "output": "314159265 358979323 846264338 327950288 419716939 937510582"}]