code: 
  
  
  """simple docstring"""
  
  
  
  
  from __future__ import annotations
  
  
  
  
  
  def 			a_   (  lowercase__   :Any    ):
  			global graph, reversed_graph, scc, component, visit, stack
  			if visit[u]:
  						return
  			__lowerCamelCase        =			True
  			for v in graph[u]:
  						dfs(lowercase__    )
  			stack.append(lowercase__    )
  
  
  
  
  
  def 			a_   (  lowercase__   :List[Any]    ):
  			global graph, reversed_graph, scc, component, visit, stack
  			if visit[u]:
  						return
  			__lowerCamelCase        =			True
  			component.append(lowercase__    )
  			for v in reversed_graph[u]:
  						dfsa(lowercase__    )
  
  
  
  
  
  def 			a_   (  ):
  			global graph, reversed_graph, scc, component, visit, stack
  			for i in range(lowercase__    ):
  						dfs(lowercase__    )
  			__lowerCamelCase        =			[False] * n
  			for i in stack[::-1]:
  						if visit[i]:
  									continue
  						__lowerCamelCase        =			[]
  						dfsa(lowercase__    )
  						scc.append(lowercase__    )
  			return scc
  
  
  if __name__ == "__main__":
  					# n - no of nodes, m - no of edges
  					__magic_name__     ,   __magic_name__	:   List[str]          =							list(map(int, input().strip().split()))
  
  					__magic_name__	:   list[list[int]]          =							[[] for _ in range(n)]  # graph
  					__magic_name__	:   list[list[int]]          =							[[] for i in range(n)]  # reversed graph
  					# input graph data (edges)
  					for _ in range(m):
  										__magic_name__     ,   __magic_name__	:   Tuple          =							list(map(int, input().strip().split()))
  										graph[u].append(v)
  										reversed_graph[v].append(u)
  
  					__magic_name__	:   list[int]          =							[]
  					__magic_name__	:   list[bool]          =							[False] * n
  					__magic_name__	:   list[int]          =							[]
  					__magic_name__	:   list[int]          =							[]
  					print(kosaraju())
  
  
  
  
  
style_context: 
  
  
  """simple docstring"""
  
  
  
  
  def 			a_   (  lowercase__   :str, lowercase__   :int = 13    ):
  			__lowerCamelCase        =			""""""
  			for c in s:
  						if "A" <= c <= "Z":
  									out += chr(ord("""A"""    ) + (ord(lowercase__    ) - ord("""A"""    ) + n) % 26    )
  						elif "a" <= c <= "z":
  									out += chr(ord("""a"""    ) + (ord(lowercase__    ) - ord("""a"""    ) + n) % 26    )
  						else:
  									out += c
  			return out
  
  
  
  
  
  def 			a_   (  ):
  			__lowerCamelCase        =			input("""Enter message: """    )
  
  			__lowerCamelCase        =			dencrypt(lowercase__, 13    )
  			print("""Encryption:""", lowercase__    )
  
  			__lowerCamelCase        =			dencrypt(lowercase__, 13    )
  			print("""Decryption: """, lowercase__    )
  
  
  if __name__ == "__main__":
  					import doctest
  
  					doctest.testmod()
  					main()
  
  
  
  
  