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