fork download
  1. USING: io kernel math math.parser sequences ;
  2.  
  3. readln string>number iota
  4. 0
  5. [ drop readln string>number + ] reduce
  6. 42 =
  7. [ "YES" ]
  8. [ "NO" ]
  9. if
  10. print
Runtime error #stdin #stdout 0.18s 163968KB
stdin
2
40
stdout
No suitable arithmetic method
left    40
right   f
generic +