summaryrefslogtreecommitdiff
path: root/sem_5/codingbattle/ex1/a_loot_sharing.cpp
blob: 400324737dabb9f64f6f0ef00b0ce50403bb09f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <string>
using namespace std;

int main (int argc, char ** argv){
  int B;
  int T;
  int po;
  cin >>B>>T>>po;
  if ( B*2 + T * 3 <= po){
    cout<<"LOOT!"<<endl;
  }
  else cout<<"RHUM!"<<endl;
  return 0;
}