#                                                                Y...lYswwwwqmwwwnP.................jmf...............j...................................lVq
#                        .yp.                                       Yq....uws....ymC.....mC.....yN.................jN..........................................lw.
#                  .ypNC.    ..NNp..                              .aE........vC....jmO......yM...................pO...N.........g....p..............................W.
#           ..gpP..                 ...YNNmpppp...            .m.........yP......gO......jP...jmC..............M....y...........g....j..op.............................b.
#       BP..                                    jC         .C.......jrhP.......h.......yO..yN................p....jN............g....jp..Jp...............................V
#       B                                       K.       Z.......pC.C.jXy....yO...jmCyOjAyP................mP...p.K.............bE...jje..Jp.............tp.................k
#       N                                       N                jCr. p....yN..yP. .hM..hjpO............p.jb.jC. y.............j.j...hjH...jp..............Q..................y
#      jh                                      .E                .   ..JOFTphM.    .  .N.P...........jC. .NjC    N.g...........N. p.f..p....j...............lp.................Jp
#      jC                                      jh                   .C....g..           ..........ZYC    jP.    jHONwqpqg.....h   kf.  h.....K................k......q...........C
#      hH                .g.                   jC                 g......jO                                 ..amnf...      ...    .   .PP.Z..ZV.................V.....Jp..........k
#     .N               ..jNNNppp..             jC               y........g    ..wc....                                                       ..k..................Y.....Jp.........p
#     jC            KNNNNNPPPPNNNNNN           jC              M........jh                                                                     .k...................lp....k........j
#     B                          BNNC          jC             P........jNb                                                                       k....................Jq...Jp.......k
#    B.                      .jpNNNC           jC           jO........p.jO                                                                        lp.....................W...Q......j
#   .N.                  NNNNNNP.              jh          j........g...j.                                                                         .p......................kp.k.....j
#    jC                  ...                   jh         jO............jp                                           ..ucP.......                    g..........p............Jqk....f
#     N                 NNN.                    N         b..............k                                      .ypbNNNNPPPPNNNNNp.                  g.b.........p..............Y...C
#     g.               NNN.                     N        hyN.............j.     .tPjgypg..                      ...                                  ..QnV........k...............Jq.
#     K.              NNNNNNNb    BNN           g      yb.................b.  vhNNNP....YY.                                                           Jbr.JQ.......Jp................Y.     y.L
#     KH             NNNN. JNNb  pNNO           KH   d.....................g. C.                                                                       jbjP..p.......k.................Jc.c...O
#     KH            BNN.    KNNNNNP.            jp C.....yP.................k.                                                                          ..  .mNp......Jp...........W......V..C       .JE.
#     K.                      ..                jCl...vg...............p.....k.                                                                            jb...k.......k............Np.....kNPZZ........
#     B               jNNNNNNNNNNNNe            jhljP  O..............g.....jN.                                                                            .k.....W......p.............Y......g.........j
#    .N                       JNNNP              N    h..............jb....P j.                                 ....                                        .N.....jp.....p..............k.....Y.......Y.
#    KC               gNNp                       jC  jO.....jO.......jN...C  j.                       ...cP.............Yq.                                yC........C....jp..............lp....Jp...Z.
#    N               NNN.                        N   j......b........jN.jC   j                  ..mf.......................l.                             ........  .mX....y................k.....y.
#     Kp             .MNNNNNNNNNNNNN            jC   K.....jO.........b.F    j.                p............................h                                    .mP..jb....p................Jp...JNwqu..
#      Kn                                       N    j.....K..........jj.     C               j............................p.                         ywwwwwwNO....pP...j...kk.................q...j..jpP
#      JN                                      jh    Jr....b...........B       t.              Yp........................yO                        .mZ.........jNb.......b..k.b.....E...........k...p
#       jC                                     gH     k...jJp...........C       .C.              .W......................                       .yO.h.....jpNk.  k.....jpqH.k..jp...jp..........fk..C
#       JN                                     B.      Q..j .p........j..k         Y.               ..    ....                               .P.....KpyNQNNNNNNNck.yNNNNNNb.NNNNNp...k..........CJHJH
#        B.                                    B        kgd.  lp.......N..y           Yq.                                                .............gNNNNNNNNgyNNNNNNNNNhgNNNNNNp..g.........j  Lj
#        KH                                    B                Jp......N..A             .Yq..                                     ..mC.............yNNNNNNNNjNNNNNNNNNNNNHNNNNNNNNp.j........j.
#        lNNNNNNqp...                          KH                  .Vg...Np.d.                bZw...                         ..ypNP.............jmNNNNNNNNQyNNNNNNNNNNNNNNNNNNNNNNNN.j.......jC
#                    .YNp..    ......ppppppppy.jh                       .sBTq.A.            .C...ajH..Zsc...          ..yppNNNNP.............pNNNNNNNNNNNyNNNNNNNNNNNNNNNNNNNNNNNNNNNg......gNNb
#                          ...                                                .QjC        vhm..   j..P.........lljNgpjNNNNNN............ymNgNNNNNNNNNNNqNNNNNNNNNNNNNNNNNNNNNNNNNNNNNO....yNNNNNN
#                                                                                 .P             jyB.....jp....gpNNpjNNNNNNNp.....gmNbNNNNNNNNNNNNNNNNgNNNNNNNNNNNNNNNNNNNNNNNNNNNNNP..jBNNNNNNNNk
#                                                                                              mh....QmP. byPfNNNQQQQQNRppRNNQQQQQQQQQQQQQQQQQQQQQQQQNNNNNNNNNNNNNNNNNNNNNNNNNNNNNpOpNNNNNNNNNNNNNC


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