#include <iostream>
struct nr_complex {
long double a, b;
};
std::istream& operator>>(std::istream& is, nr_complex &z){
return is >> z.a >> z.b;
}
std::ostream& operator<<(std::ostream& os, nr_complex z){
return os << z.a << '+' << z.b << "i\n";
}
int main(){
nr_complex z;
std::cin >> z;
std::cout << z;
}