import sys
x = sys.stdin.readline()# 替换掉原有的input()print(x)
Py2加速
#Python 2 and 3 footer by Pajenegod and c1729#Note because cf runs old PyPy3 version which doesn't have the sped up#unicode strings, PyPy3 strings will many times be slower than pypy2.#There is a way to get around this by using binary strings in PyPy3#but its syntax is different which makes it kind of a mess to use.#So on cf, use PyPy2 for best string performance.from __future__ import division, print_function
import os
import sys
from io import BytesIO, IOBase
if sys.version_info[0]<3:from __builtin__ importxrangeasrangefrom future_builtins importascii,filter,hex,map,oct,zipclassFastIO(IOBase):
newlines =0def__init__(self,file):
self._fd =file.fileno()
self.buffer= BytesIO()
self.writable ="x"infile.mode or"r"notinfile.mode
self.write = self.buffer.write if self.writable elseNonedefread(self):whileTrue:
b = os.read(self._fd,max(os.fstat(self._fd).st_size, BUFSIZE))ifnot b:break
ptr = self.buffer.tell()
self.buffer.seek(0,2), self.buffer.write(b), self.buffer.seek(ptr)
self.newlines =0return self.buffer.read()defreadline(self):while self.newlines ==0:
b = os.read(self._fd,max(os.fstat(self._fd).st_size, BUFSIZE))
self.newlines = b.count(b"\n")+(not b)
ptr = self.buffer.tell()
self.buffer.seek(0,2), self.buffer.write(b), self.buffer.seek(ptr)
self.newlines -=1return self.buffer.readline()defflush(self):if self.writable:
os.write(self._fd, self.buffer.getvalue())
self.buffer.truncate(0), self.buffer.seek(0)classIOWrapper(IOBase):def__init__(self,file):
self.buffer= FastIO(file)
self.flush = self.buffer.flush
self.writable = self.buffer.writable
self.write =lambda s: self.buffer.write(s.encode("ascii"))
self.read =lambda: self.buffer.read().decode("ascii")
self.readline =lambda: self.buffer.readline().decode("ascii")defprint(*args,**kwargs):"""Prints the values to a stream, or to sys.stdout by default."""
sep,file= kwargs.pop("sep"," "), kwargs.pop("file", sys.stdout)
at_start =Truefor x in args:ifnot at_start:file.write(sep)file.write(str(x))
at_start =Falsefile.write(kwargs.pop("end","\n"))if kwargs.pop("flush",False):file.flush()if sys.version_info[0]<3:
sys.stdin, sys.stdout = FastIO(sys.stdin), FastIO(sys.stdout)else:
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)# region fastio
BUFSIZE =8192input=lambda: sys.stdin.readline().rstrip("\r\n")
read =input
read_int =lambda:int(input())
read_array =lambda sep=None, maxsplit=-1:input().split(sep, maxsplit)
read_int_array =lambda:[int(a)for a in read_array()]defreadnumbers(zero =0):
conv =ord
A =[]; numb = zero; sign =1; i =0; s = sys.stdin.buffer.read()try:whileTrue:if s[i]>=b'0'[0]:
numb =10* numb + conv(s[i])-48elif s[i]==b'-'[0]: sign =-1elif s[i]!=b'\r'[0]:
A.append(sign*numb)
numb = zero; sign =1
i +=1except:passif s and s[-1]>=b'0'[0]:
A.append(sign*numb)return A
#Python 2 and 3 footer by Pajenegod and c1729 #Note because cf runs old PyPy3 version which doesn't have the sped up#unicode strings, PyPy3 strings will many times be slower than pypy2.#There is a way to get around this by using binary strings in PyPy3