eolymp
bolt
Try our new interface for solving problems
Problems

Java MyLong Add

Java MyLong Add

Implement a wrapper class MyLong.

class MyLong // Java
{`
  private long a; // one private variable
  MyLong(long a) // Constructor
  public String toString() // Print a variable of type MyLong
  public MyLong Add(MyLong b) // Add MyLong value
  public MyLong Add(long b) // Add long value
};

Input

Two integers a and b (-1018a, b1018).

Output

Print the value of a + b + 10.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 3
Output example #1
15
Author Michael Medvedev