{"raw_statement":[{"iden":"problem statement","content":"Takahashi is standing on a two-dimensional plane, facing north. Find the minimum positive integer $K$ such that Takahashi will be at the starting position again after he does the following action $K$ times:\n\n*   Go one meter in the direction he is facing. Then, turn $X$ degrees counter-clockwise."},{"iden":"constraints","content":"*   $1 \\leq X \\leq 179$\n*   $X$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$X$"},{"iden":"sample input 1","content":"90"},{"iden":"sample output 1","content":"4\n\nTakahashi's path is a square."},{"iden":"sample input 2","content":"1"},{"iden":"sample output 2","content":"360"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}