Problems
Java Fraction 1
Java Fraction 1
Implement a class Fraction that uses a wrapper class MyLong.
class MyLong
{
private long a; // private variable
MyLong(long a) // Constructor
public String toString() // Print the variable of type MyLong
}
class Fraction
{
MyLong numerator, denominator; // numerator and denominator
Fraction() // Constructor
Fraction (MyLong numerator, MyLong denominator) // Constructor
public String toString() // Print the variable of type Fraction
}
Input data
Two integers a and b (-10^18
≤ a, b ≤ 10^18
).
Output data
Print the fraction in the form a / b.
Examples
Input example #1
3 4
Output example #1
3/4