package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long a = scanner.nextLong(); long z = (long)Math.sqrt(a); while(true) { long z2 = z*z; if(z2 % a == 0) { System.out.println(z2 / a); return; } z++; } } }