#                                               .wwrrT.......TMMMmww...
#                                        .wM.............................TMwg.
#                                    wM........................................TMg
#                                .M.....P.........w..........P.....................Jw.
#                             .f....wf. ......yf....y.....gK...........................v
#                          .K....w..    ...jf.....K....yMM...............................W
#                        v.....f.........g....jgF....e.y..    ........g....................k
#                      r....y.........yM....wQC....P..Af............gP...K..................My
#                    r....y.........yQy...P.Z....f  .PZ...........Z.f...K.....................X          y
#                  awaq..Qd.......jCyV..F .F....   qPj..........y. y...g......r................A        MQ
#                    r.gCF.gP....gwPj.y...bw.MC   q.j..........f  q...ML.....f..................k     yMQQ
#                  x..C...P..jP.. . P.            . F  ..Mw...F   gk.Fj.....j....................L  .MWWMQ
#                ......pMKMTQh.                              .    Kkf.L.....K....j..............J...MMQWQQ
#               r...........f                                    .PMkj.....gk....L...............LBMMWQQQQ
#             y............qk       .ggggg.                          j....jW..p.j................gWQQQQQQQ
#           .C....y........g.    gMMT....TMk                         .l....j.j..F...............gWgMQQQQQQ
#          yKz...Z........gH   .F.  .gMWQQy                            .Ll.FQP.J..............qMgQWQQQQQQQ
#         p.f...K.......QP T        .gQQQWg                  .g..         jWM..k.............gWMWMMgQQQQQQ
#        F A..qP.......g.. i      JWMWQQQWP                  ..TMMQg.     f.L.f.............MWMQQQQQQQQQQQ
#     QW. l..ZF.......M.Mj..       N....yP                     .ggg.MQy  . j.Q.....I.......gggQQQQQQQQQQQQ
#     QMWX...y.......F  UQF                                   TQMWMWg.ML   kQP....I.......gWQQMQQQQQQQQQQQ
#     MWQ..MW....l...  .QK                                  gggMQQQQQ..Q   .K....Z.....M.gMgQMQQQQQQQQQQQQ
#     MMg.ggk...J.y  gj.Q.                  .               gMMWQQQQB  H.  j....f....jM.gQMMQWQQQQQQQQQQQW
#     WQkgWQ....ky     .M.                                  .W....dP   T  j....K....y..BWgMWQQQQQQQQQQMQWQ
#     WQWWQK...QgMMg.   .g                                               y...y.....g.gMgQMWWQQQQQQQQQMQgQF
#     MMMQQh...gWQWgQMMg .L          gmmmmwww..                         Z...K.....KqMWQgQWQMQQQQQQQQQQgP
#     WMWQMH..ggWQgWMQgWQMWg        .p...........Mw.                  .F..jC....g.gMMWgggQWQQQQQQQQWWQK
#     QQBWMWk.ggQMgQQQQMWWQMN.       R..............L                y...Z.....F.gQMQQMQMQQQQQQQMQQWgK
#     gQMQMQNHMMWWgWQQQQQQMQgMMg      .w............f              .K..y.....W.yMQMQWgWgWMQQQQQQMMQgbwfj
#     QWMMggWNgQMMMWWMWQQQQQggWgQg           .......             .Z........y..QQQWWQQWQMQQQWQQWQgQK...y.
#     WWMWMMgWMgMMQQMMQQMMgWgP..QMTN.                           y.y......yWQMWgMWMWggggWWQQQQQQWQK...f
#     QMgMMQMggMWMgMgWQQMgpf...j......Mq..           ......wwrQ.y......PMfMWQgWWMgMMWMMWWWWWQMQQP.wf
#      .WgQQMQWggQQMMgQgy...  .L .........gWQWWMM..........ggCg.....yC.MMMgMQMQMQQWgggWQQMQQQQQMmwgP
#         MgMQWQQgWWWMp....   j  ...L....gg.........wmP...jQW....wf.yQMWQgWMgMMQWWQQQMgQMQQWQWwr..
#           XgWMMQggQF.. ..   F   ..Hp...Qk.pwMT........gQM.gMk...MgMWgMQWQMgMWQQQQQWWQQQMQQK


a,b = gets.split.map(&:to_i)
puts [a+b,a-b,a*b].max