using System;
class Program {
public static void Main(string[] args) {
int age = int.Parse(Console.ReadLine()); // Don't change this line
int height = int.Parse(Console.ReadLine()); // Don't change this line
bool hasAdult = bool.Parse(Console.ReadLine()); // Don't change this line
string status = "";
// Write your code below
if (age >= 12) {
if (height > 150) {
if (age < 15) {
if (hasAdult) {
status = "You can ride with adult supervision!";
} else {
status = "Sorry, you need an adult with you";
}
} else {
status = "You can ride by yourself!";
}
} else {
status = "Sorry, you're not tall enough";
}
} else {
status = "Sorry, you're too young";
}
// Don't change below this line
Console.WriteLine(status);
}
}
using System;
class Program {
public static void Main(string[] args) {
int age = int.Parse(Console.ReadLine()); // Don't change this line
int height = int.Parse(Console.ReadLine()); // Don't change this line
bool hasAdult = bool.Parse(Console.ReadLine()); // Don't change this line
string status = "";
// Write your code below
if (age >= 12) {
if (height > 150) {
if (age < 15) {
if (hasAdult) {
status = "You can ride with adult supervision!";
} else {
status = "Sorry, you need an adult with you";
}
} else {
status = "You can ride by yourself!";
}
} else {
status = "Sorry, you're not tall enough";
}
} else {
status = "Sorry, you're too young";
}
// Don't change below this line
Console.WriteLine(status);
}
}