Question
Filled with the enthusiasm and excitement of hostel life, you are exploring your new home when suddenly you bump into what appears to be a wall. Closer examination reveals the "wall" to be actually a gigantic, disgruntled and unshaven SENIOR. You politely say "Hi!". SENIOR just grunts in reply. You are about to continue when suddenly SENIOR booms out "Hey FRESHIE!". The plaster is still falling off the ceiling as you turn back with trembling legs. So starts a nice interactive session with SENIOR. One-way intros over, SENIOR starts asking more technical questions. Your slowly losing that gentle smile on your lips as the questions get livelier. But here comes a question which puts the g.s. back where it belongs: SENIOR says, " I will give you a number (N). Find positive integers `x' and `y' so that x^y + y^x = N, and the sum (x + y) is maximum." So your job is to find such x and y.

Input: The integer N in a line by itself. Output: The values of x and y in the format x y on a line by themselves, separated by a blank. Any order of x and y is ok.

Answers



More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q How many of these smaller cubes will have only one side of their sides painted?
  • Q a man buy a liquid by 12 lts and the mixture is of 20% liquid in water then he makes it in 30% mixture then what is the % of liquid with water.
  • Q What is operator in Python?
  • Q How can you build and test a metric to compare ranked list of TV shows or Movies for two Netflix users?
  • Q Name the village of Pune District Maharashtra whereas a land slide occurred
  • Q What are the New Job Postings from the Company or Organization, Electronics Regional Test Laboratory (ERTL) ?
  • Q What is the northernmost permanently inhabited place in Canada?
  • Q What usually indicates that your virtual user script has dynamic data that is dependent on you parameterized fields?
  • Q When we use xi adapter?
  • Q What are the units of offset press?
  • Q What are different replication agents and what's their purpose?